Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOPEN() returns 0
Message
From
27/09/2004 13:02:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00946247
Message ID:
00946338
Views:
30
Thank you and everyone else for the help.
I have it up and running at the moment (I have no idea what exactly fixed it). When it breaks again I will try these other suggestions.
Beth
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform