curious behavior...

tuviah snyder tuviah at runrev.com
Wed Jun 2 03:05:14 EDT 2004


NumberFormat is a local property, not global, like the itemdelimiter. The do
command has it's own context.

Tuviah


----- Original Message -----
From: "Chipp Walters" <chipp at chipp.com>
To: "Use-Revolution" <use-revolution at lists.runrev.com>; "tuviah snyder"
<tuviah at runrev.com>
Sent: Friday, May 28, 2004 8:19 AM
Subject: curious behavior...


> I'm trying to programatically set the numberFormat property.
>
> on mouseUp
>    repeat 4 times
>      put "#" after t
>    end repeat
>    put "set the numberFormat to " &quote& t &quote into tDo
>    do tDo
>    put 5+1
> end mouseUp
>
> puts just "6" in the msg
>
> now if I try:
>
> on mouseUp
>    set the numberFormat to "####"
>    put 5+1
> end mouseUp
>
> It puts the expected "0006"
>
> Any ideas why??
>



More information about the use-livecode mailing list