button references?

Richard Gaskin ambassador at fourthworld.com
Sat Jan 3 07:52:41 EST 2004


Doug Lerner wrote:

> On 1/3/04 8:45 PM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:
> 
>>> If I find myself referencing something like the following a lot:
>>> button "a" of card "mainCard" of stack "thisOtherStack"
>>> is there a shorter way of referencing this?
>> 
>> If the object is in another stack from the current default stack (the one
>> that has focus) then yes.  But if you have a lot of such references to write
>> you can set the defaultStack and use shorter descriptors:
>> 
>> put the defaultStack into tSaveStack
>> set the defaultStack to "MyStackName"
>> set the label of btn 1 to "Steve"
>> set the label of btn 2 to "Bob"
>> -- etc.
>> set the defaultStack to tSaveStack
>
> So, changing the default stack is really the only way?

Depends on where the script is, and where the objects that you're
referencing are.  If they're in another stack from the one that currently
has focus, if you don't specify the stack how will Rev know where to look
for them?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the use-livecode mailing list