Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Caliing a Non Modal form
Message
 
To
13/05/2006 12:40:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01121669
Message ID:
01121692
Views:
8
Hi Anton.
Thanks for the tip .. I will give it a try.
Regards,
Gerard



>>I have 2 issues:
>>1. When I close formA I wlays want FormB to close (otherwise it would be left dangling)
>
>>2. Before I call FormB, it would be nice If I could identify if its already there, if It is just show it, otherwise do a Do Form
>
>Just add a property ChildForm to FormA to store reference to FormB and set default value to .Null. For example this code will create/show FormB:
>
>IF ISNULL(ThisForm.ChildForm) &&FormB is not created
>  DO FORM "FormB.scx" NAME ThisForm.ChildForm LINKED &&Create child form and store reference
> ELSE
>  ThisForm.ChildForm.Show() &&Show the form
>ENDIF
>
>
>Because form is created with LINKED option it will be automatically released if FormA is released.
Previous
Reply
Map
View

Click here to load this message in the networking platform