Global variables lost in space
Mark Talluto
userev at canelasoftware.com
Wed May 18 11:51:46 EDT 2005
On May 17, 2005, at 5:23 PM, Dar Scott wrote:
>
> On May 17, 2005, at 5:49 PM, Mark Talluto wrote:
>
>
>> I just got bitten by the same thing and came to realize that if
>> you create a new global variable and put a number into it, it will
>> not now up.
>>
>
> This works for me:
>
> on mouseUp
> global a
> put 0+5 into a
> put "[" & a & "]"
> end mouseUp
>
> I even changed the global to some weird name and used random().
>
> Rev 2.5.1 on OS X 10.3.9 (MDD).
>
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.
Mark Talluto
--
CANELA Software
http://www.canelasoftware.com
More information about the use-livecode
mailing list