Script local variables

J. Landman Gay jacque at hyperactivesw.com
Sat Feb 22 13:56:42 EST 2014


On 2/22/14, 12:17 PM, Peter Haworth wrote:
> I think this is dependant on the Variable Preservation setting on the
> Preferences Script Editor tab.

It is, but there's a bug in it somewhere. I use script locals 
extensively and they always worked until somewhere around version 6.x. 
After that the values were occasionally lost. Every subsequent version 
has made the problem worse, and now I lose them so often that I've had 
to add a reload of the values to almost every handler I'm debugging.

Since I can't find a consistent recipe (sometimes they do work) I 
haven't reported it yet, but it's making my life difficult. All I know 
is that it happens some time after I change a script, but not every 
time, so I'm at a loss.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list