Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtran() / Stuff() / Padr() ???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00249697
Message ID:
00250704
Views:
28
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform