Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiled Project to .APP doesn't seem to include forms?
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00745080
Message ID:
00745183
Views:
26
Should be:

EXTERNAL FORM (FILE_NAME.scx)

Also the file should be in the defa or path directories.

>I tried adding this line to the MAIN.PRG program:
>
>EXTERNAL FORM form1
>
>But, it was no use. I'm still getting the file does not exist error. Any other ideas?
>
>Thanks,
>Don
>
>>Thank you so much, I'll check out the help file on the EXTERNAL command. That sounds like what I need.
>>
>>Thanks,
>>Don Knoup
>>
>>>Add to main.prg a line EXTERNAL FORM.... to alert the project. See VFP HELP on EXTERNAL command for more details
>>>
>>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform