Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read Only Program Files

Status
Not open for further replies.

TerryUrb

Programmer
Oct 3, 2005
40
CA
I have written some prg files in VFP9 and I have taken the code to VFP6. The files on the VFP6 software will not allow me to edit the files. I thought maybe it was due to the source files, so I deleted them and recompiled the files but it is still holding these as "Read Only
 
Wanna slow down and try that again?

You deleted source and then recompiled? What the heck did you recompile?

What kind of files and what do you men "won't let you edit". If you're taking VCX/VCT or SCX/SCT files from VFP9 to VFP6 you probably WILL have problems because of newer features in VFP9.
 
Files inside an exe are read-only. Files not inside an exe can be changed from read only to non-read only in explorer with right-click properties' read only checkbox.

prg files are just text files.

Brian
 
Hi Brian,
I know that the prg files are only text files, but why will VFP6 not let me modifiy the text file? These text files were originally Foxpro files which I brought over to VFP9. I thought the same. I deleted the compliled files thinking that VFP was looking at these files and then not allowing the text file to be changed. I think I did the right click and looked that the properties, but I will do that again.
Terry
 
Terry,

Could you clarify this. Are the saying that the files have been physically flagged read-only? Or that there is something in VFP that is causing problems when you try to edit them?

I suggest you try opening one of the files in Notepad. Try making a simple change (such as editing a comment). Then save the file and re-open it. If you can't do that, or if you don't see the change, you need to check the file's properties, or the permissions of the folder where it is stored.

But if you can save and re-open the file in that way, perhaps you could explain a bit more clearly exactly what the problem is.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
If you by chance, copied those files from a CD, they may have been flagged as read only by virtue of them being read only on the CD.
If nothing else, copy and paste the code to new .prgs. There's no reason for VFP 6 to inhibit you editing a newer version's files.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Hmmm.... now it could be the file folder properties. I did not check that as I copied over the complete VFP9 file folder. It is the source test files that I am trying to change. The portable with VFP6 is Windows98 and my desk computer is XP with VFP9.
 
YES, you were correct ! In the properties, the files are set as Read Only !

Thanks a bunch!
Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top