Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a form from an external prg
Message
From
01/07/2015 15:01:58
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01621645
Message ID:
01621670
Views:
126
This message has been marked as the solution to the initial question of the thread.
>Is there a way to call a form (that i have in my Exe file) from an external prg ?
>
>My app is an .Exe compiled foxpro files.....in one form i call an external .prg file (really an .fxp). In this .fxp i need to call a form that i have in my Exe, but foxpro always searches for an external .scx file, that obviously i have not in the customer folder....i have only the compiled exe file....
>
>Some solution or suggest ?
>
>Thanks

Hi Michelle,

I think there is a way you can do that. If you make available a public procedure on your EXE (with SET PROCEDURE or a method of a public object), then you can call this method from your "external" code, and this method (internal) can load the form.

I've used this trick for accessing internal EXE components other times.


Example: You have an EXE (myprog.exe) whose main program have this:
*-- MAIN.PRG
*
* (code)
*

PROCEDURE do_form( tcName )
   DO FORM ( tcName )
ENDPROC
*-- End MAIN.PRG
And from your external program, you do this:
SET PROCEDURE TO myprog.exe
do_form ("someform.scx")
Best regards.-
Fernando D. Bozzo
Madrid / Spain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform