Global variables lost in space

Dar Scott dsc at swcp.com
Wed May 18 13:11:46 EDT 2005


On May 18, 2005, at 9:51 AM, Mark Talluto wrote:

> Now open up your message box and look for the value of the global 
> variable in the global variable list.  It will not show up.  It is 
> true that the value is usable from within a script though.

Oh, I get it.

The variable is in line 4 of the variableNames but is not in the items 
of the globalNames until after a string is put into it.

Another bad consequence is that if a handler declares a global and gets 
compiled, that doesn't mean it is in the globalNames.

(Looks like an "if" bug.)

Dar

-- 
**********************************************
     DSC (Dar Scott Consulting & Dar's Lab)
     http://www.swcp.com/dsc/
     Programming and software
**********************************************



More information about the use-livecode mailing list