Watching my Variables

Martin BLACKMAN martinblackman at gmail.com
Fri Jun 10 07:28:04 EDT 2005


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


More information about the use-livecode mailing list