Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you fill a char variable with zeros?
Message
From
07/06/1999 19:28:17
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00227138
Message ID:
00227300
Views:
21
>>>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' )
thanks - I will try it ... :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform