Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy memo fails if file exists
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01513136
Message ID:
01513144
Vues:
54
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform