Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PADL() weird translation
Message
From
01/03/2003 02:36:23
 
 
To
01/03/2003 02:26:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00759865
Message ID:
00759867
Views:
27
Michel,
lnNumero=1
? PADL(lnNumero,6,'0')   && Returns 000001

lnNumero=1.00
? PADL(lnNumero,6,'0')   && Returns 001.00
Your lnNumero is not integer. So...
lnNumero=INT(lnNumero)
? PADL(lnNumero,6,'0')   && Returns 000001
>I have a weird translation returned by PADL(). I have a value of 1 assigned to lnNumero. Then, I do the following:
>
>
>? PADL(lnNumero,6,'0')
>
>
>The result is 001.00. Anyone can explain me why?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform