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

Richard Gaskin ambassador at fourthworld.com
Tue Jul 15 16:42:00 EDT 2003


erik hansen wrote:

> 
> --- 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?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list