Setting custom properties

Richard Gaskin ambassador at fourthworld.com
Tue Oct 25 09:26:47 EDT 2005


Jim Hurley wrote:
> I would like to be able to set a custom property to an evaluated string. 
> In the following lines of script:
> 
> put "apples" & cr & "oranges" into tList
> put "myGroceryList" & 3 into tName
> set the tName of this card to tList
> 
> It appears that Run Rev will assign tList to the custom property 
> myGroceryList3. But how does it know that the name of the custom 
> property is myGroceryList3 and not tName? Does it check to see whether 
> tName has a value in the script?

You've implicitely declared it by using it as a variable in the line 
before.  If a token is in the local variable table it'll be used as such.

--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the Use-livecode mailing list