Well, I didn't *think* it was allowed. I confess I never used script locals that way. If I need to assign a permanent value, I use a constant:

  constant kVar = 1234

If the IDE accomodates script locals with assignments, then maybe something changed. Apparently it doesn't work in standalones.

Or maybe this is a clue to the larger issue of lost script locals.


On 2/22/14, 8:26 PM, Scott Rossi wrote:
Uh, oh -- I do this all the time.

Is this really not supposed to work?

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 2/22/14 6:04 PM, "J. Landman Gay" <jac...@hyperactivesw.com> wrote:


local tMyScriptLocal1
local tMyScriptLocal2 = "ghijk"
local tMyScriptLocal3

I'm not sure it's a fair test. As far as I know, you can't assign a
value to a script local that way, though you can if it's a constant.
Actually, I'm kind of surprised it works in the IDE.



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



--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

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

Reply via email to