Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a form from an external prg
Message
From
01/07/2015 04:41:46
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
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:
01621650
Views:
58
Michele,

Your approach looks a bit complex. :)

I do not forms (scx), I do forms in vcx's

An object can be created with NEWOBJECT which has a parameter that allows to set the exe (or app for that) file. See HELP NEWOBJECT

Also a classlib can be used via SET CLASSLIB, this comes with an IN clause too

An other way is to create a procedure in your exes main programm, call it from outside DO My_Proc IN MyApp.exe and let that create the form.

In general I feel that the use of vcx based forms is better for that, but I do not have done much with it

If you like to see how it works you can download my Bin2PRG extension from VFPX. Check the menu, the RunBT2 main prg and the cusstorage class. The form frmInterface does not much.


>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
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform