Hi Albert,
It's correct syntax and it should work. How do you know that it doesn't?
BTW, you can use '$' operator in this case
ccTab = CHR(9)
IF ccTAB $ lcStr
lcStr = CHRTRAN(lcStr, ccTab, "")
ENDIF
>
>I have to read line from a log-file into a cursor.
>The logfile lines contain tabs( chr(9) ), which i want to eliminate.
>l_tab = ATC(CHR(9),myLine)
>chr(9) was found,so i tried
>
>if l_tab > 0
>myLine = CHRTRAN(myLine,CHR(9), '')
>end
>
>No success?
>What is the correct syntax to change chr(9) in a string
>
>Any help welcomed
>Best regards
>Albert
>
--sb--