Naming a card
Scott Rossi
scott at tactilemedia.com
Thu Apr 4 17:31:01 EST 2002
> after trying to rename the cards several times and working through the
> debug
> window I can see cards 1-31 are named...but that's it...not 32-on. which
> shows me it might have worked .the script seems to be hanging on the
> "set
> the name of card part".
> put the cardnames of this stack into MyCards
> put 1 into MyX
> repeat for each line MyLine in MyCards
> set the name of card MyLine to "Page" & MyX
> put MyX +1 into MyX
> end repeat
Could this work instead?
(run in new stack; creates a set of 100 cards with numbered names)
on buildCards
lock screen
set the name of this card to "Page1"
repeat with N = 2 to 100
create cd
set the name of this card to "Page" & N
end repeat
end buildCards
Regards,
Scott Rossi
Creative Director, Tactile Media
scott at tactilemedia.com
http://www.tactilemedia.com
More information about the use-livecode
mailing list