Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run a form and wait for result without modal?
Message
 
To
12/12/2006 06:02:56
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01176772
Message ID:
01176785
Views:
10
BindEvent idea is nice, i'll take a look at it. I know the easiest is to use Modal, but it's a complicated scenario that also involves Dragging and Dropping to a sophisticated ActiveX control that resides in form A, and nothing gets triggered in there when FormB is modal...
Jaime

>Jaime,
>
>I'm not using forms in therms of scx files but I guess you need a look at READ EVENTS
>
>OTOH.
>It's not the sence of two modless forms to wait on each other.
>You might consider to instantiate form B from A and hand form B a handle to form A. Form A goes as one. If form B is closing it need to call to form A via the handle you have provided.
>
>What I would do in reality is to create Form B as a class. Instantiate from A like
>
>THIS.ADDPROPERTY('goFormB',NEWOBJECT(cFormBClass,cFormBClassLib)
>bindevent(THIS.goFormB,'DESTROY',THIS,'MethodHandlesBDestroyed',1)
>THIS.goFormB.show
>
>
>Then THIS.MethodHandlesBDestroyed will be invoked when Form B closes and you can do what you need on form A
>
>Agnes
>
>>Basic form question...
>>I want to run, from Form A, a form which is set as Always-on-top and Modeless ( let's call it from B ).
>>When i run the do form command in form A, form B runs, but code execution in form A continues. How can i wait until form B is released to continue code execution in form A?
>>
>>Thanks
>>Jaime
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Reply
Map
View

Click here to load this message in the networking platform