Script local variables

Peter W A Wood peterwawood at gmail.com
Mon Feb 24 08:01:32 EST 2014


A quick update on the problem that I experienced with initialisation of script locals. Mark Waddingham posted the following comment on the bug report that I made:

START COMMENT
I think I know what is happening here - when the stack is being saved as a standalone, the stack is closed and reopened in the IDE. I suspect that this process is failing to run the openStack handler. Therefore, after saving the standalone, the stack in the IDE is not in the same state as the standalone is after starting up.

Indeed, if you 'revert to saved' in the IDE after saving as standalone the openStack handler is run.
END COMMENT

He has kindly corrected the title of my bug report - http://quality.runrev.com/show_bug.cgi?id=11832

Now I'm going to change the script local variables to constants which Jacque was kind enough to introduce to me in a previous comment on this thread. If only I'd known about them in the beginning, I wouldn't have stumbled across this possible bug.

Regards

Peter

On 24 Feb 2014, at 03:09, J. Landman Gay wrote:

> On 2/23/14, 12:17 PM, Bob Sneidar wrote:
>> 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.
> 
> Don't think so, that was one of my first tests when I tried to reproduce the problem. I'm going with "script error" as the culprit for now.
> 
> -- 
> 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