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:
00250704
Vues:
29
>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))
Like the first one better. And it works in 5.0 with Foxtools< g >.
George

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

Click here to load this message in the networking platform