Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PADL() has a nice undocumented feature
Message
From
22/02/2006 18:58:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
PADL() has a nice undocumented feature
Miscellaneous
Thread ID:
01098313
Message ID:
01098313
Views:
64
This is to let you all know that I discovered a really nice, undocumented feature of PADL(). It is present in at least vfp7 and higher.

The 3rd parameter can be used to define the Pad Character, says the doc. However, this parameter can be of varying length! An example:
? "Result: " + padl( 123, 10, "#000000000" )
Result: #000000123
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Next
Reply
Map
View

Click here to load this message in the networking platform