Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PADR()
Message
 
To
21/03/2000 16:29:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: PADR()
Miscellaneous
Thread ID:
00348534
Message ID:
00348907
Views:
22
>> MyString=RTrim(LTrim(MyString))+Space(30-Len(RTrim(LTrim(MyString))))

I meant also to mention that the PADR( ) function doesn't just add characters to the right. An equivalent function needs to account for the fact that the desired length is less than the current length of the string and truncate it, if necessary. Larry's function does that too.

-Bob
Previous
Reply
Map
View

Click here to load this message in the networking platform