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

erik hansen erikhans08 at yahoo.com
Tue Jul 15 15:53:03 EDT 2003


--- Richard Gaskin <ambassador at fourthworld.com>
wrote:
> erik hansen wrote:
> 
> > 
> > --- Richard Gaskin
> <ambassador at fourthworld.com>
> > wrote:
> > 
> >>> is there a way to set sHolder to
> >>> empty between each use?

> No, you would need a handler to trigger it. 
> Otherwise, Rev wuldn't know
> when you want it cleared.

i wanted a static-global like sHolder to empty
itself between uses just to reduce the clutter.

local tHolder 
in each handler does the job, of course.

in the script (ouside any handler) you can write
local sHolder = 0 and this will put 0 into
sHolder but i haven't found out whether sHolder
resets to 0 after each use.


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