Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric Variable get 2 decimals
Message
From
09/03/2000 21:25:23
 
 
To
09/03/2000 21:00:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00343986
Message ID:
00343994
Views:
18
It seems a little long, but you can use:

lcTextBox = padl(alltrim(str(lnNumDoc,10,0)), fsize('c_numerador'),'0')


alltrim(str(lnnumdoc, 10, 0)) returns a string exactly as long as the number, but with no decimals
Previous
Reply
Map
View

Click here to load this message in the networking platform