Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy File - strange behavior
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00594099
Message ID:
00594340
Views:
18
Hi Rick,

Just a SWAG, maybe your current directory is different when you copy from menu and from function and in the last case you have the slim.fr* files in the current directory marked as read only?

As workaround or alternative you can try to copy a report as a table
USE slim0c_c.frx 
COPY TO slim.frx
USE
>I have a program with uses COPY FILE.
>When I run thru the code via a menu option it works without a problem.
>When I run thru the code via a function call from one of my screens, I get a "File Access Denied" message involving the (report) files I'm trying to copy, even tho this is the only place in the system where these files are referenced and I'm the only user in the system and no other developer is in the files (also, the files have not been moved or modified recently, which lets the virus checker off the hook this time).
>
>The actual lines of code are:
>COPY FILE slim0c_c.frx TO slim.frx
>COPY FILE slim0c_c.frt TO slim.frt
>
>Does anyone have any idea why this is happening?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform