Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy memo fails if file exists
Message
 
 
To
06/06/2011 13:28:45
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01513136
Message ID:
01513144
Views:
53
>>Hi everybody,
>>
>>I have the following line of code
>>
>>copy memo contents to (lcFile)
>>
>>I found that it fails for the regular user if the file already exists in the directory. The user does have read-write access to the parent directory (and I assume to all its children?).
>>
>>Do you find this to be the case for you as well and what will be the solution?
>>
>>Thanks in advance.
>
>Try SET SAFETY OFF, maybe that helps?

I think it's most likely already off, but I'll verify. I don't think this is the PROBLEM, as I only get the error when I log as a user without Admin rights on this computer (and it's quite inconvenient to test as I have to switch users and re-log all the time).

UPDATE. This form uses default data session and it does not explicitly set SET SAFETY OFF. I think I'll add it there to not rely on the main program setting it properly.

If this will turn a solution, it will be very nice and simple.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform