Watching my Variables
Pat Trendler
ptrendler at bigpond.com
Thu Jun 9 22:11:41 EDT 2005
Just thought I'd show another way of doing this. I always get mixed up with
where to put the "" when using those "do" things.
put " " & value(item x of varNames) & cr after tList
Pat
patrend at bigpond.com
>I ran into the same problem. I solved it with the do command
>do "put "&myVariableNameIsInHere
>Dennis
----- Original Message -----
From: "Derek Bump" <webmaster at dreamscapesoftware.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Thursday, June 09, 2005 10:11 AM
Subject: Watching my Variables
>I am updating my Error Reporting script to include all variable information
>(Local, Global, etc) and I am wondering how I would get the contents of a
>variable who's name is held within a variable?
>
> Just analyze the script below and you'll see what I mean...
>
> -- Globals
> put cr&cr& "Global Variables..." &cr after theMessage
> put globalNames() into varNames
> repeat with x=1 to the number of items in varNames
> put " " & line x of varNames after theMessage
> put variableContents(line x of varNames) &cr after theMessage
> end repeat
>
>
> Derek Bump
> Dreamscape Software
> _______________________________________________
> Compress Images Easily with JPEGCompress 2.6.1
> http://www.dreamscapesoftware.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