Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small number to string conversion
Message
De
17/05/2006 23:26:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
17/05/2006 22:56:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01123084
Message ID:
01123090
Vues:
48
>>See Transform()
>
>I could have done it with transform by doing something like that:
>
>
>TRANSFORM(lnAmount,"99999999999999999.999999999999999")
>
>
>in order to make room for any kind of data that could be received as a numeric. But, I wanted something clean. So, I ended up with the ALLTRIM(PADL(lnAmount,20)) such as I mentioned in the other message.

No, I think the idea was to use transform() without additional parameters, thusly:
? transform(lnAmount)
This had some inconsistent behavior in older versions, but I think those were fixed in VFP 8 or 9. alltrim(padl(...)) was the safer alternative, for those older versions.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform