Reset Locals?
Chipp Walters
chipp at chipp.com
Thu Jul 6 02:03:42 EDT 2006
Hi Scott.
First, I love local variables!
I typically use them a lot in libraries, because they reset themselves
when you quit and restart. But, while editting scripts, I typically
put a checkLocals handler at the beginning of most handlers which use
them.
Something like:
on checkLocals
if lWhatTimeIsIt is "" then
initLocals
end if
end checkLocals
Then, if I need to access a local from outside the script, I use:
function altReturnLocal pLocal
do ("return " & pLocal)
end altReturnLocal
More information about the use-livecode
mailing list