We have been having the following problem with VFP editor (9.0) - I am not sure if it existed before 9.0.
If a user opens a PRG file (on a network drive) for editing, then another user tries to open the same file, the second user gets the message:
File access is denied <Filename>.
If the second user was trying only to view the PRG, and typed:
MODIFY COMMAND <FileName> NOMODIFY
the file gets open in Read Only Mode. While the PRG still open by the second user (ReadOnly), if the first user made any changes to the PRG and tried to save the file (Ctrl-S) or Save and Close (Ctrl-W), he/she gets the message:
File access is denied <Filename>
and the file goes away/gets closed (!) discarding all changes made to the file! - no option to save to another file name!
Has anyone encountered this problem?
Any trick to get around it?
To replicate the problem:
- Open VFP and edit any PRG file
- Open another VFP session and try opening the same file. You will get File access is denied ... message
- Try open the file again with (in the second VFP session) with NOMODIFY option - it opens ReadOnly.
- Make changes to the file opened in the first session, then try to save!
Adel
If a user opens a PRG file (on a network drive) for editing, then another user tries to open the same file, the second user gets the message:
File access is denied <Filename>.
If the second user was trying only to view the PRG, and typed:
MODIFY COMMAND <FileName> NOMODIFY
the file gets open in Read Only Mode. While the PRG still open by the second user (ReadOnly), if the first user made any changes to the PRG and tried to save the file (Ctrl-S) or Save and Close (Ctrl-W), he/she gets the message:
File access is denied <Filename>
and the file goes away/gets closed (!) discarding all changes made to the file! - no option to save to another file name!
Has anyone encountered this problem?
Any trick to get around it?
To replicate the problem:
- Open VFP and edit any PRG file
- Open another VFP session and try opening the same file. You will get File access is denied ... message
- Try open the file again with (in the second VFP session) with NOMODIFY option - it opens ReadOnly.
- Make changes to the file opened in the first session, then try to save!
Adel