Script local variables

Bob Sneidar bobsneidar at iotecdigital.com
Sun Feb 23 13:17:59 EST 2014


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





More information about the use-livecode mailing list