Re: Idle Help
Re: Idle Help
- Subject: Re: Idle Help
- From: email@hidden
- Date: Thu, 7 Dec 2000 16:27:42 -0500
Phi Sanders <email@hidden> wrote on Wed, 6 Dec 2000 22:16:12 -0500
>
globals do not remember their settings from the last run,
>
properties do (unless you recompile them, then they start
>
fresh on the first run after the recompile)
Globals are also persistent, although its not to useful since they are not
initialized. So you usually initialize them when the script starts, and lose
the persistent value.
You can set up a script so that it catches the first reference to an
uninitialized global and then initializes it, and otherwise use the persistent
value. Perhaps you want to initialize it based on some condition when it is
first run, rather than when it is compiled (for example, if you are delivering a
script to a customer.)
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden