Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chrtran() with tab ??
Message
 
 
À
15/04/2009 06:24:54
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01394917
Message ID:
01394925
Vues:
54
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform