Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PADL() weird translation
Message
De
01/03/2003 02:39:10
 
 
À
01/03/2003 02:36:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00759865
Message ID:
00759868
Vues:
12
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform