Script local variables

Peter Haworth pete at lcsql.com
Sat Feb 22 15:15:18 EST 2014


Hi Jacque,
I've definitely seen values disappear after compiling the script for a long
time but didn't worry abut it too much since that only happens during
development not in production versions.

Like you, I haven't been able to come up with a recipe to reliably
reproduce it.


Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>


On Sat, Feb 22, 2014 at 10:56 AM, 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