Numberformat

Richard Gaskin ambassador at fourthworld.com
Tue Aug 26 15:40:23 EDT 2008


David Bovill wrote:
> I can never get this working... or has something changed? I want
> a number
> formatted to 2 chars and padded with leading zeros if it is only
> 1 digit. I
> thought numberformat did this (for containers as well as fields
> by forcing a
> calculation by adding zero. So:
> 
>     set the numberformat to "00.######"
>     put item 1 of someDate + 0 into y
>     put item 2 of someDate + 0 into someMonth
> 
> Well its not working now. I get "8" instead of "08" for this
> month?

What happens in your script after the last line you posted?

-- 
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list