Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled Project to .APP doesn't seem to include forms?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Project manager
Title:
Compiled Project to .APP doesn't seem to include forms?
Miscellaneous
Thread ID:
00745080
Message ID:
00745080
Views:
58
I have a project file with several forms in it. (All forms are marked to be included in the project) I build this project into an Application file. This .APP file is called by another VFP .EXE program.

When the .APP is called it fires off my MAIN.PRG and based on whichever parameter is passed it should open the appropriate form. This worked fine when my MAIN.PRG looked something like this:

...
DO CASE
CASE lcParameter = 'Form1'
DO FORM form1
CASE lcParameter = 'Form2'
DO FORM form2
...

I decided to change the way that I called forms so that I could control them better. I have a method in application object does the "DO FORM" as well as some other stuff every time a form is opened.

I change my MAIN.PRG program code to look more like this:

...
DO CASE
CASE lcParameter = 'Form1'
goApp.m_opnform("form1.scx","",-1,.F.)
CASE lcParameter = 'Form1'
goApp.m_opnform("form2.scx","",-1,.F.)
...

Now when I compile the project to the .APP file it seems the FORM1.SCX, etc. are not included. I get an error message in my compiled application when it is run that says "FILE c:\myprg\form1.scx does not exist". (Obviously, I don't want to distribute the .SCX form with my compiled system. How can I get the project to include the form when it is compiled?

Thanks in advance for your help!

Sincerely,
Don Knoup
US Software, Inc.
Don Knoup
don.knoup@ticomix.com
Ticomix, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform