Searching for class objects in revers order

Podge

New member
Joined
Nov 10, 2019
Messages
26
Hello all,

Another newbie question.
I basically have a class called card, that contains 84 objects, or cards.

The code below is what I am using to find cards. This works fine as I am using very simple code.
The search goes in the order the cards were created.
My question is can I search for objects/cards in reverse order?

For Local card := Eachin cards
If card.picked = True card.done = True
Next

Many thanks,

Kurt
 

Podge

New member
Joined
Nov 10, 2019
Messages
26
Just a little update. I've just decided to create the deck in reverse order as a work-around:

For card_count = 84 Until 0 Step -1'create all cards
cards.Push New Card
Next

I am still curios though if searching through a list of objects of a class in reverse order is possible? Maybe using the above 'step' method somehow?
 
Top Bottom