Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chrtran() with tab ??
Message
From
15/04/2009 06:29:35
 
 
To
15/04/2009 06:24:54
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01394917
Message ID:
01394918
Views:
52
>Hello Everybody
>
>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
>


chrtran should work
I prefer strtran() in this case
myLine = strtran(m.myLine, chr(9))
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform