Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in PADL command?
Message
De
01/06/2006 05:26:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01126320
Message ID:
01126405
Vues:
14
>Hi everybody,
>
>yAmount is a currency field.
>
>PADL(yAmount,9,'0') returns an empty string.
>PADL(CAST(yAmount as Numeric (9,2)),9,'0') returns the result correctly.
>
>Looks like a bug to me.
>
>Thanks in advance.

Currency is a fixed format,
then VFP convert it to a fixed 21 chars string.

Doesn't use CAST( AS N) or MTON(), it is an program error.

Uses:
? PADL(CAST(yAmount AS M),9),"0")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform