Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the equivalent of str(OEPDM,2,0,'0') in vfp
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648196
Message ID:
00648511
Views:
18
>James,
>
>>I didn't know you could specify the decimal length with a padl function?
>
>You can't, but since his calls were all doing no decimal places padl() will work. If you need decimal places you can use a str() inside the padl():
>
>
? padl( alltrim( str( lnTheNumber, 10, 5 ) ), 10, '0' )
It can also be done with TRANSFORM()
? TRANSFORM(lnTheNumber, "@L 9999.99999")
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform