Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange error
Message
De
25/12/2009 11:52:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01440623
Message ID:
01440628
Vues:
51
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform