Numberformat

David Bovill david at openpartnership.net
Tue Aug 26 15:31:52 EDT 2008


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?



More information about the use-livecode mailing list