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:
00250684
Views:
21
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))
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform