Watching my Variables
Pat Trendler
ptrendler at bigpond.com
Fri Jun 10 08:44:46 EDT 2005
Martin,
Yes, it certainly wouldn't work in your example. The global would have to
exist in the first place to have a value even if it was empty.
I'm interested in how you are using 'do' here. Is the saved file a rev stack
with the globals stored as custom properties, or is it a txt file. How do
you use the 'do'?
Pat
patrend at bigpond.com
----- Original Message -----
From: "Martin BLACKMAN" <martinblackman at gmail.com>
To: <use-revolution at lists.runrev.com>
Sent: Friday, June 10, 2005 9:28 PM
Subject: Re: Watching my Variables
I ran into a similar problem trying to save and recall a file for the
program I am writing. The thing is I want my standalone to be able to
open a saved file and along with data it should restore the values of
all the global variables. So the way I though of is to store the
globalnames together with their values in the save file. And to open
a file and restore the values of global vars I use the 'do' form as
expressed by Dennis. In such a case the method used by Pat would not
work (of course it can be used for other purposes).
The documentation says that 'do' is quite slow as it compiles in real
time. Its not too slow for me but I'm not loading a terribly big
file.
Martin
Date: Fri, 10 Jun 2005 12:11:41 +1000
From: "Pat Trendler" <ptrendler at bigpond.com>
Subject: Re: Watching my Variables
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Message-ID: <00b901c56d61$c80a7130$0100000a at super>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=response
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
_______________________________________________
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