getting the number of the current marked card

Klaus Major klaus at major-k.de
Fri Dec 17 07:36:33 EST 2004


Hi Xavier,

> i wanted justly to avoid going through every card!

Yes, sure, see my last mail...

> So if I move card 2 to the last card of the stack, it is still card 
> 2???

No, then it is the last (the num of cds) card :-)

> Seems unreal!

Life is unreal :-D

> So after sorting cards, how do you know which is the 5 card in the 
> list?
> You are forced to either remember every card in an array index or
> go next 5 times? This sounds ridiculous...

In my case that doesn't matter, fortunately ;-)

> X

>>> ...
>>> Depends on how you sort the cards but that's one cheap trick to
>>> find them...
>>> sort by id of each card
>>> Sort by the marked of each card

The correct syntax is (i finally found out):

...
sort cds by the mark of each
...

Looks like it is not even necessary to sort by id first...

Have a nice weekend (and don't drive too fast ;-)


Best

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list