Don't understand the meaning of "local"

Jim Ault JimAultWins at yahoo.com
Fri Dec 23 20:23:59 EST 2005


On 12/23/05 4:59 PM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:
> Alex-  wrote:
>>    global gVar; delete global gVar
> 
>> Weird, huh ?   But it works.
> 
> Thanks. That makes some sort of sense. But Very Very Weird.

Not really that weird.  The message box is sort of a parser-interpreter, so
does not always behave like a regular script container.

Glad you got your final answer from Alex.

Curious, but in multi-line mode both of these work:
global gVar
delete variable gVar

global gVar
delete global gVar

-- yet the following does not need the declaration (msg box)

answer gVar


Jim Ault
Las Vegas





More information about the use-livecode mailing list