>Hello group, any one know a way in VFP 7 to resolve this problem. I’m using Active documents technology and have the following problem after create the AD Container and launch my app in the run method as follow:
>
>ofrmPublish = NEWOBJECT("frmkdppublish.frmpublish","","",cStr)
>ofrmPublish.SHOW()
>READ EVENTS
>
>In this form I have a button that calls another app with the following code:
>
>oFrmProp = NEWOBJECT("frmkdpProperty.frmkdpProperty")
>= oFrmProp.Show(1)
>
>My problems are:
>
>1. how return a value from the oFrmProp to the oFrmPublish
A number of approaches can be used - while I avoid Active Document for my apps, it's possible to implement a native Windows IPC service between the server and client objects (the Named Pipe (NT family required on the server side) or mailslots would handle the work without going to a separate component, and both will operate identically with in-process, local and remote clients.) Using the API requires some detailed code involving VFP API calls and structures. Other approaches might use the MSMQ OLE Control services, or simply sticking the information in a file accessible to both systems.
>2. how can I know if oFrmProp was called from another app, this for test in it destroy method is necessary follow the clear events command or not.
ISHOSTED()
>
>Thanks for any help