Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PADL() weird translation
Message
From
01/03/2003 02:39:10
 
 
To
01/03/2003 02:36:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00759865
Message ID:
00759868
Views:
18
>
>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
>
lnNumero was calculated by something like VAL('1'), for example. So, yes, that gives 1.00. But, I wonder why this has worked for years without having to apply the INT() approach. Thanks for the info, I'll try to clarify that later on.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform