Refer to Cards

Roger Guay rogerguay at centurytel.net
Sat Jul 17 13:17:21 CDT 2004


Thanks, but I don't think this will work for what I need.  What I need 
is a command that forces subsequent lines of script to  act only on a 
specified card.  Something like:

on someHandler
	Do something to look only at card x for the following lines -- this is 
the line I'm after
  	hide object 1
	show object 2
	put "something" into fld 3
	etc.
	Do something to look only at cd y for the following lines -- this is 
the line I'm after
	hide object 1
	show object 2
	put "something" into fld 3
	etc.
end someHandler

I know that SuperCard had this ability, but I don't remember the 
command.

Any help?

Thanks, Roger

On Jul 17, 2004, at 9:00 AM, use-revolution-request at lists.runrev.com 
wrote:

> Message: 10
> Date: Sat, 17 Jul 2004 02:45:59 +0200
> From: Wouter <wouter.abraham at pi.be>
> Subject: Re: Refer to Cards
> To: use-revolution at lists.runrev.com
> Message-ID: <ABD204FA-D78A-11D8-8B32-003065CC999E at pi.be>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed
>
>> 	• 	From: Roger Guay
>> 	• 	 Date: Fri, 16 Jul 2004 17:23:26 -0700
>>
>>  I have a large script which I would like to operate on a number of
>> identical cards. The script is at the stack level and I need to refer
>> to each of the identical cards in sequence. Is there a way to put the
>> focus on a specific card with a (single) line of script without having
>> to specify the card in every one of the lines? It would simplify my
>> script immensely if I didn't have to insert the card name everywhere!!
>>
>>
>> Thanks for your help, Roger
>>
>>
>
> Hi Roger,
>
> Have a look at the mark command and the marked keyword in the
> transcript dictionary
> (don't forget unmark)
>
> HTH.
> Greetings,
> WA


More information about the use-livecode mailing list