Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File access is denied
Message
From
28/03/2004 18:01:35
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00888351
Message ID:
00890298
Views:
11
You can use the FOPEN to test. If FOPEN returns <0 you can show a message to explain the problem to access the file (user´s rights or other system problems). I use a OPEN routine (writed by me) to open each file and the FOPEN command is tried first. It´s fast and the result is good. Something like that:

LNhandle = fopen(xxxx)
if LNhandle<0
Error message
else
fclose(LNhandle)
endif
use &xxxx

I hope it helps you.
Previous
Reply
Map
View

Click here to load this message in the networking platform