[Gambas-user] simple replace question
Bruce
bbruen at ...2090...
Wed Mar 4 16:08:10 CET 2009
On Thursday 05 March 2009 01:34:29 Rolf-Werner Eilert wrote:
> newString = Conv(st, "UTF-8", "ASCII")
>
> Replace(st, "½", ".5")
Thanks RW,
That got me started at least.
So far:
TRY wx = Conv(lp1[5], "UTF-8", "ASCII")
TRY wx = Replace(wx, "½", ".5")
TRY wx = Replace(wx, "¼", ".25")
TRY wx = Replace(wx, "¾", ".75")
seems to work.
I had to put the TRY's in because 3/4 doesn't seem to handle properly
otherwise.
If I ever get my hands around the throat of the smart little programmer that
put these chars in the input text file I'll .....
regards
ted
More information about the User
mailing list