Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in PADL command?
Message
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:
01126322
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>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.

9 is not enough fo currency:
PADL(yAmount,19,'0')
*** Better
PADL(TRANSFORM(yAmount),9,'0')
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform