Perhaps I have a conceptual problem on my end? I wanted to print out some sort of representation of the card object... but I guess the card doesn't have a "name" at all because it's just a card object with Suit and Rank...
Ok - changed my loops to this:
Now works like a charm. Thanks!
Ok - changed my loops to this:
For Local x:Int = 1 To 13 For Local y:Int = 1 To 4 Local Card:TCard = New TCard DebugLog("New Card Created") Card.Rank = x Card.Suit = y DebugLog("New Card's X and y set to: " + x + "," + y) DeckList.AddLast(Card) Local c:TCard = (TCard(DeckList.Last())) DebugLog("Object added to list with suit / rank of: " + c.Suit + "," + c.Rank) Next Next
Now works like a charm. Thanks!