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

File must be opened exclusively

Status
Not open for further replies.

metron9

Programmer
Mar 5, 2002
94
US
Three questions.

My compiled program (.EXE) gives me the must be set exclusively. It does not give me the error when i am in foxpro. Why is that?

I know it is because of a zap command. What i want to know is how do I get the error message to give me the line of code causing the error so I can fix it?

Question #2
AS an old clipper programmer I am still wondering how to search for code in all of the methods of forms. Is there a way to list out all of the code for a form so I can do search and replace or just examine all of the code in a page form without clicking on each method in the form?
 

You can only zap a file if it is opened exclusively.

You probably did not get the error when you were running from the VFP command line because you were opening all files exclusively.

To find the error compile the program with debug set on. See the error will then show the line #. You might also want to look at putting a real error handler in your program. There are skeletons available from various download sites.

If you are searching for code in all the methods of the form. Just do modi form, open a code window and do a search one of the options on the search dialog is to search all methods.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top