Could it be that editing the script resets the script local variables? This is 
true in Applescript properties. Editing and saving the script resets the 
properties to their defaults. 

Bob


On Feb 22, 2014, at 10:56 , J. Landman Gay <[email protected]> wrote:

> 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         |     [email protected]
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to