Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why isn't this working?
Message
De
29/09/1998 16:05:35
 
 
À
29/09/1998 15:57:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00142107
Message ID:
00142112
Vues:
23
Please ignore the last message. Accidentally hit "send".

DO WHILE lcLine<>'!CUST' + chr(9) AND !FEOF(lnHandle)

**************************************
*** This sequence will work just fine

* lcLine = ''
* lcChar = ' '
* DO WHILE lcChar<>chr(13) AND !FEOF(lnHandle)
* lcChar = FREAD(lnHandle,1)
* IF lcChar<>chr(13) AND lcChar<>chr(10)
* lcLine = lcLine + lcChar
* ENDIF
* ENDDO

**************************************
*** but this crashes when it tries to read the line
*** that starts with "!CUST"+chr(9)

lcLine = FGETS(lnHandle,999)

**************************************
= FPUTS(lnHandle2,lcLine)
? lcLine
ENDDO

What's the difference?
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform