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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generate screen code causes "file access denied"

Status
Not open for further replies.

wadesnj

Programmer
Mar 24, 2001
36
0
0
When I try to generate the spr file from my screen code, I get a "file access denied" error message and the file is not generated. If I build a complete new app, the spr is regenerated correctly.

This happens if I delete the spr file first, or leave the old version.

This has only been happending since the 13th December, although I don't think anything has changed!

Does anybody know what the problem is?

(Foxpro for DOS Version 2.6a)

 
Hi Rick

No, I'm not using Genscrnx, just the built in FPD26 screen builder. But your comment re temp files has made me think - it might be something to do with file permissions. I'll check this out. I assume you mean that the screen builder creates some temporary files as part of the generate process?

 
Yes, it uses sys(3) to create it's visible temp files. The Hacker's Guide has this to say:
* Get a unique filename for a text file
* On a busy network, you may want to try to FCREATE()
* the file inside the loop to make sure someone else hasn't
* just grabbed the same name.
cFile = SYS(3)
DO WHILE NOT FILE(cFile+".TXT")
cFile = SYS(3)
ENDDO
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top