Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APP Can Not Find Forms
Message
From
29/03/2000 16:31:33
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00351219
Message ID:
00352387
Views:
13
Yes I actually get an error message: "File z:\migv\contab\sosa\fecha.scx missing." The path indicated is the current directory, where the data is, but no programs are there.

Another clue: if I move to the debugger when the error appears, it shows in the trace window "Source out of date", so I cannot investigate much more. BTW, it continues to show this message no matter how many times I recompile the program and rebuild the app (which is called fecha.spr)

It probably is a silly mistake, but what could it be!

Thanks,

Alex


>I can say I have never had this problem. I have compiled APPs including and excluding forms that are in their own sub-directories and both ways have run fine.
>
>Do you actually get an error message?
>
>>Mark,
>>
>>Thank you very much for your reply. My question was very unclear. The confusion probably comes from the heading that I used, which has nothing to do with the problem.
>>
>>In the past (with FPDos), I always compiled an APP or EXE file and ran it. Fine, but a slow cycle during development.
>>
>>Now in VFP, I am experimenting with "building the project", i.e. compiling the files but not putting them together in an APP file during development but just calling the first file. In order for this to work, I test from within MAIN.PRG what kind of situation it is and set the PATH accordingly. If we are running "the project", I set up a path that goes down into the "FORMS", "PRGS", etc. directories. And this is working fine.
>>
>>The problem now arises when I "Build the APP". The path is now like it will be during production. It only points to the directory where the APP is. Unfortunately, when calling a particular form it looks for it in the path, but it is not there. It's right in the APP (or at least it should be since it was included in the project) but it is not finding it.
>>
>>Thanks for your help.
>>
>>Alex
>>
>>
>>>I am not sure what your problem is here. You build a project but do not yet have an APP or EXE compiled, so by issuing a DO MAIN.PRG everything works. All forms and classes have been included in the project.
>>
>>>
>>>Next, when you build the APP or EXE and run the APP or EXE, the MAIN.PRG can not find the first form called. This fails because the form can not be found in the current directory.
>>>
>>>I do not understand where you are setting up a different path. Are you issuing a SET PATH command in the MAIN.PRG? What does the code look like in the MAIN.PRG where you are calling your first form?
>>>
>>>Or is this a problem looking for the data [tables/views] in one place but not finding them because your data is in a different relative path?
>>>
>>>>Hi,
>>>>
>>>>A form is included in a project. If I build the project and run it by calling the first file VFP finds the form fine since it is in the path set up for such a case.
>>>>
>>>>If I build the app I set up a different path since VFP is supposed to look for files in the app file. However, it is looking for it in the current directory, which is a data directory. This has always worked fine in FPD.
>>>>
>>>>What's wrong ?
>>>>
>>>>TIA,
>>>>
>>>>Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform