curious behavior...
Wouter
wouter.abraham at pi.be
Fri May 28 10:26:31 EDT 2004
> Chipp Walters chipp at chipp.com
> Fri May 28 08:19:47 EDT 2004
>
>
> I'm trying to programatically set the numberFormat property.
>
> on mouseUp
> repeat 4 times
> put "#" after t
> end repeat
> put "set the numberFormat to " "e& t "e 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??
No ideas.
But this works (unless you need a "do xxx" statement):
on mouseUp
repeat 4 times
put "#" after t
end repeat
set the numberFormat to t
put 5+1
end mouseUp
puts "0006"
And to add to the curious behavior try this:
on mouseUp
repeat 4 times
put "#" after t
end repeat
set the numberFormat to quote & t "e
put 5+1
end mouseUp
puts "000006"
Greetings,
WA
More information about the use-livecode
mailing list