sort stack by short id of this card

Rob Cozens rcozens at pon.net
Sun Feb 24 11:27:01 EST 2002


>I have a stack I am scripting for work.  For years I have been using this in
>Hypercard.  It is a "Form" made of six cards (designed to print cards 1 &2 on
>one page, cards 3 & 4 on the next page and cards 5 &6, on the last page). I
>have rewriten it in transcript and am now setting it to copy itself, and sort
>so that I have each form in order by field "Order Number".  (on mouseUp....go
>first .... repeat 6..new card....go next........sort stack by short id of
>this card)
>
>Everything works fine....untill I got to Card ID 10000. Now card id 10000 has
>decided it wants to be first in the card order.

I frankly don't understand why this works at all.  You say you want the
cards in order by field "Order Number" but sort the stack by the short id
of each card. ??

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)



More information about the use-livecode mailing list