Accessing imbedded custom properties (or other variables for that matter)

MisterX b.xavier at internet.lu
Tue Oct 12 23:29:31 EDT 2004


you don't need the quotes for a numeral or variable though...

  do "set the" && myPropName && "of this stack to 1234"

  do "set the" && myPropName && "of this stack to aValueORaString"
  where aValueORaString is an existing variable...

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Ken Ray
> Sent: Wednesday, October 13, 2004 04:20
> To: Use Revolution List
> Subject: Re: Accessing imbedded custom properties (or other 
> variables for that matter)
> 
> On 10/12/04 9:10 PM, "Alan Gayne" <alanira9 at mac.com> wrote:
> 
> > However, the name of the custom property I want to set is in the 
> > variable myPropName.
> > 
> > So how do I make the spontaneous contents of the variable 
> myPropName 
> > into the name of a property, the contents of which I want to get or 
> > set?
> 
> Use the "do" command, like:
> 
>   do "set the" && myPropName && "of this stack to" && \
>     quote & "1234" & quote
> 
> HTH,
> 
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: kray at sonsothunder.com
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list