>>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.-
Great solution! It works fine.
Thanks Fernando