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:
00250684
Vues:
22
Hi Goerge,

>lcInput= '###,###,###.####'
>lnlbs = OCCURS("#", SUBSTR(lcInput, RAT('.', lcInput)))
>lcOutput = FORCEEXT(lcInput, REPLICATE('0', lnlbs))

That works

Actually I was thinking:
?forceext(lcIn, replicate('0', len(justext(lcIn))))

or

?forceext(lcIn, replicate('0', len(lcIn)-rat('.',lcIn)-1))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform