Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange error
Message
From
25/12/2009 11:52:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01440623
Message ID:
01440628
Views:
50
This message has been marked as a message which has helped to the initial question of the thread.
StrTran() all the replacements to space(1) since they serve as separators

eg
selectCRName
should become
select name

and not
selectName
If the last two of the strtan (CR and CRLF) are #defined - you can take them out since chr(10) and chr(13) already take care of those

So,

>
>USE C:\cdbk90\Amline\data1\Teleph IN 0
> cFile = FILETOSTR( 'Temp.txt' )
>     =STRTRAN(  cFile , CHR(10) , space(1))
>     =STRTRAN(  cFile , CHR(13) space(1))
>     =STRTRAN(  cFile , CHR(9) ,space(1)) )

>      WAIT WINDOW cfile
>
> &cfile
> BROWSE
>
>

>Hi all,
>
>i have temp.txt ( attachment )
>
>
>USE C:\cdbk90\Amline\data1\Teleph IN 0
> cFile = FILETOSTR( 'Temp.txt' )
>     =STRTRAN(  cFile , CHR(10) , '' )
>     =STRTRAN(  cFile , CHR(13) , '' )
>     =STRTRAN(  cFile , CHR(9) , '' )
>     =STRTRAN(  cFile , CR , '' )
>     =STRTRAN(  cFile , CRLF , '' )
>      WAIT WINDOW cfile
>
> &cfile
> BROWSE
>
>
>
>I hav always a error ?!
>
>Why ?
>
>Merry christmas.
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform