Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you fill a char variable with zeros?
Message
 
To
07/06/1999 15:25:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00227138
Message ID:
00227221
Views:
30
>>Would something like ABC = REPLICATE('0',10) help? Or abc = '0000000'?
>>Mark
>---
>yea, thanks...

Or if your dealing with numeric values that needs to have
left side padding (in this sample, lenght needed is 8 with 2 decimal)

abc = strtran( str( mynum, 8, 2 ), ' ', '0' )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform