Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to output zerofilled text from query of numeric f
Message
 
 
To
13/05/2003 08:38:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00787664
Message ID:
00787674
Views:
11
>Thank you ahead for helping me with this simple question.
>
>I have a query in which I am reformatting fields from a table and building an All Text file. I am looking for a function or expression that I can place in the output field that will zerofill the leftmost positions of the character output.
>
>I am currently using str(penaltyamt,9,2) to get a nine character field with decimal places.
>ex.
>" 900.00"=STR(pnlty_amt,9,2)
>This, as you know does not give me leading zeroes. Is there a function to accomplish this?

Try
TRANSFORM(pnlty_amt, "@L 999999.99")
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform