Discovered funny thing. TRIM$ trims away any character at end and start,
but using ANY to remove characters inside a string, it only handles up to
ASCII 127? Copy,paste and test following to see - result will be "Börje",
without leading/ending "ö". Should be "Brje"..
Found this "feature" when trying to trim away strange ASCII 160 from
inside result in textbox with MS UpDown control attached to it. UpDown
formats values above 999 by inserting CHR$(160) as thousand separator.
Simple fix, use REMOVE$(txt, ANY "ö") instead - it works like expected..
------------------
but using ANY to remove characters inside a string, it only handles up to
ASCII 127? Copy,paste and test following to see - result will be "Börje",
without leading/ending "ö". Should be "Brje"..
Code:
LOCAL txt AS STRING txt = "öBörjeö" MSGBOX TRIM$(txt, ANY "ö")
inside result in textbox with MS UpDown control attached to it. UpDown
formats values above 999 by inserting CHR$(160) as thousand separator.
Simple fix, use REMOVE$(txt, ANY "ö") instead - it works like expected..

------------------
Comment