Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange error
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01440623
Message ID:
01440636
Views:
98
This message has been marked as the solution to the initial question of the thread.
>
> cFile = FILETOSTR( 'Temp.txt' )
>    
>       =STRTRAN(  cFile , CHR(9) , ' ' )
>        =STRTRAN(  cFile , CHR(13) , ' ' )
>        
>        STORE cFile TO _cliptext
>        
>        
>
>
> _cliptext =
>
>SELECT T.cnomteleph AS 'cNomRes'
>FROM TELEPH T INTO CURSOR CrystalNew READWRITE

Bernhart,

Looks like you need to do this instead
cFile = chrtran(m.cFile, chr(13) + chr(10),space(2)) && 2 spaces just in case
You're not assigning result of strtran to anything.

Also, I used CHRTRAN instead of STRTRAN for a reason!
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform