initialize an static, local, script-wide variable to empty

erik hansen erikhans08 at yahoo.com
Tue Jul 15 17:06:00 EDT 2003


> > --- Richard Gaskin
> <ambassador at fourthworld.com>
> > wrote:
> >> Scipr-local (or "static") vars retain their
> >> values during the current
> >> session.  The exception is that editing a
> >> script will reset the value of
> >> such vars defined in it.
> > 
> > thanks, this was inadvertantly sent during
> > a housecleaning. does "editing a script"
> > refer to scripted changes to a script during
> > a session?
> 
> Yes, but keep in mind that if you
> passwordprotect your scripts you won't be
> able to swap them at runtime.
> 
> What does your program do that it needs to
> write scripts on the fly?

i would rewrite functions to keep track of 
changing object names. with RR's labels this 
is no longer needed.

another example of long complex scripting
that really impressed people in the lab
but was replaced by a few lines of script
or a new program capability.

Erik

=====
erik at erikhansen.org    http://www.erikhansen.org

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the use-livecode mailing list