Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run a form and wait for result without modal?
Message
From
12/12/2006 06:02:56
Lutz Scheffler
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:
01176780
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
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
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
Next
Reply
Map
View

Click here to load this message in the networking platform