Numberformat
william humphrey
shoreagent at gmail.com
Tue Aug 26 15:58:57 EDT 2008
Spoke to soon
try
put "0" & "8" + 2
and this works with the padded zero like you want. Much simpler than hard to
understand add zero thing.
On Tue, Aug 26, 2008 at 3:55 PM, william humphrey <shoreagent at gmail.com>wrote:
> And if you do what I say it stops being a number and becomes a text string?
>
>
> On Tue, Aug 26, 2008 at 3:54 PM, Colin Holgate <coiin at rcn.com> wrote:
>
>> At 8:46 PM +0100 8/26/08, David Bovill wrote:
>>
>>> > set the numberformat to "00.######"
>>>
>>>> put item 1 of someNum + 0 into padedNum
>>>>
>>> > set the numberformat to "0.######"
>>>
>>
>> I think the problem is that the numberformat only affects how the number
>> appears, not what it is. Because you set it back to "0.######", what would
>> have been 08 becomes 8. padeNum contains the value of 8, not the string of
>> "08".
>>
>>
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
>
> --
> http://www.bluewatermaritime.com
>
--
http://www.bluewatermaritime.com
More information about the use-livecode
mailing list