Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another Day, Another VFP Tip'o
Message
 
To
08/07/1999 04:11:50
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00238716
Message ID:
00238729
Views:
11
Why thanks Mark. I never new you could use it with numerics as well.


>PADL(), PADR() and PADC() will all do an automatic conversion to character type. Very useful whan you have to do things like displaying leading zeroes.
>
>? PADL(123, 5, "0")
>instead of
>? PADL( LTRIM( STR( 123)), 5, "0")
>
>Even more useful (sometimes) is the fact that the resulting string will retain ALL decimal places.
>
>? PADL(123.4567, 10)
>Unlike STR(), which must be told explicitly how many places to retain.
>? STR(123.4567, 10)
>? STR(123.4567, 10, 2)
>
>Just passing it along.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform