curious behaviour...

Klaus Major klaus at major-k.de
Fri May 28 10:43:14 EDT 2004


Hi friends,

> One test further
> Try this:
>
> on mouseUp
> /*
>   repeat 4 times
>     put "#" after t
>   end repeat
> */
>   set the numberFormat to quote &quote&quote &quote
>   put 5+1
> end mouseUp
>
> puts "0006"
>
> which explains why
>
> on mouseUp
>   repeat 4 times
>     put "#" after t
>   end repeat
>   set the numberFormat to quote & t &quote
>   put 5+1
> end mouseUp
>
> puts "000006"

looks like the lazy engine simply parses "the numberformat" for a . 
(period)
and the NUMBER of chars ;-)

> Greetings,
> WA

Have a nice weekend...


Regards

Klaus Major
klaus at major-k.de
www.major-k.de



More information about the use-livecode mailing list