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

application wizard vfp7&8

Status
Not open for further replies.

emcdan61

Programmer
Feb 5, 2002
13
US
I'm trying to get a handle on generating applications with the included wizard. Unfortunately I am plauged with the following error:


File not found or unavalable. It may be in use.:

_app


This dialog repeats a few times than reports that it (the application) cannot run.

My current target app is a simple, with only one free table. Can someone point me in the right direction to resolving this?
 
emcdan61,

Wizards are not all they are cracked up to be, as you are already finding out. You lose too much control and without stepping through the code it's hard to know what the heck is going on. The code is often convoluted and because the wizards had to allow for a number of eventualities (be everything to everyone) they are prone to serious "code bloat".

That having been said, it appears that VFP is having a hard time finding _app.vcx. This is located in the ffc folder that you'll find in your VFP installation directory...

Run the following 2 lines in the VFP command window:

SET DEFAULT TO HOME(1) + "FFC\"
GETFILE()

...you should see it in there. If not, then there's a problem. If it is there, then why can't VFP see it? Anyone's guess, there again you are at the mercy of the wizard generated code. You might try stepping through your application using the debugger and see which line blows up first and see where VFP is trying to locate the file at...it will also tell you for sure whether or not the _app.vcx is the actual file VFP is unable to find. Make sure that _app.vcx is actually included in your project. If it is then VFP should be able to find it. In any event, you'll want to step through that code to get a better handle on what exactly is happening when you get an error with a VFP application (wizard generated or not).

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top