Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a PADL bug?
Message
From
26/07/2002 09:29:51
 
 
To
26/07/2002 09:21:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00682949
Message ID:
00682952
Views:
15
You're padding left to something that is already 10 characters long. Try:
Padl(Alltrim(Str(n)), 2, "0")
In fact, you can just use
Padl(n, 2, "0")
Alan

>We are using VFP7 SP1.
>Here's what we are seeing...
>
>
>?PADL("0",2,"0")
>
>Returns "00"
>
>
>n=0
>?STR(n)
>
>Returns "0"
>
>
>n = 0
>?PADL(STR(n),2,"0")
>
>Returns ""
>Should this not return "00"?
Previous
Reply
Map
View

Click here to load this message in the networking platform