button references?

Richard Gaskin ambassador at fourthworld.com
Sat Jan 3 06:45:20 EST 2004


> 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


-- 
 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