Refer to Cards

Rob Cozens rcozens at pon.net
Mon Jul 19 13:44:55 EDT 2004


>What I was really hoping for was 1 line of code preceding multiple 
>lines that directs the multiple lines to work on a specified card. 
>I'm trying to avoid having to put a card reference on the multiple 
>lines.  Something like:
>
>Repeat with i = 1 to the number of cards
>	focus on cd i --for this repeat cycle
>	do something -- note: no cardd reference
>	do something
>	etc.
>end repeat

Hi Roger,

lock messages
lock screen
push card
repeat with i = 1 to the number of cards
	go to cd i --for this repeat cycle
	do something -- note: no cardd reference
	do something
	etc.
end repeat
pop card
unlock messages
unlock screen
-- 

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