Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOPEN() returns 0
Message
 
 
À
27/09/2004 11:56:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00946247
Message ID:
00946334
Vues:
26
This message has been marked as a message which has helped to the initial question of the thread.
Beth,

I don't know under what conditions fopen() can return 0, but it's not a valid file handle. So you can't use it as such. I'm with the others I think filetostr() or using adir() to see if there is any file content is a better way to go.

>I ran the display status just before fopening the file and just after closing it in code. It did not show as a user opened file in the first one. In the 2nd one, it showed as a file open with a handle of 0 and a length of 0.
>
>Arror() gets me nothing, because it is not reporting it as an error.
>
>This is a random occurance, because once on friday and now I can get it to run correctly. I have shut down the machine several times trying to correct this problem. It did not fix it. But messing with the program in debug mode getting the problem fixed.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform