Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strtran() / Stuff() / Padr() ???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00249697
Message ID:
00250668
Vues:
34
Hi Mike,
>
>>lcInput= '###,###,###.##'
>>lcOutout = FORCEEXT(lcInput, '00')
>
>Well to echo my friend: DOH! Now thats cool, but you'll have to account for a Vinods 2nd situation: "###,###.####".

How about:
lcInput= '###,###,###.####'
lnlbs = OCCURS("#", SUBSTR(lcInput, RAT('.', lcInput)))
lcOutput = FORCEEXT(lcInput, REPLICATE('0', lnlbs))
Works in VFP 6.0.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform