Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form.Release()
Message
From
02/09/1998 08:58:12
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00131941
Message ID:
00132296
Views:
18
Hi, Barbara.
You're right. But since the poster *seemed* to want that kind of a link between the two forms, it seemed like an appropriate suggestion < shrug >.

>Nancy,
>Doesn't the LINKED form automatically close/release when the original form is released? Because the object reference is gone? There have been a series of threads about forms closing when the programmer DOESN'T want them to because of this.
>
>Barbara
>
>>You might be able to add a custom property to your first form called oNewTask. And assign an object reference (DO FORM NewTask NAME LINKED TO this.oNewTask ) to the second form to the property. Then you can get at with
>>
>>thisform.oNewtask.release
>>
>>One comment though, I'm of the opinion that you have another button on the second form for closing that one. It might be confusing to have one button close different forms, depending on....what exactly?
>>
>>HTH
>>
>>>I have a form with a close button on it. Other buttons also of course. It also has a button that calls another form 'NewTask'. All this works fine. I would like to use the one Close button to close either form. ThisForm.Release() closes the original form but how to reference the form appearing on top of the BaseForm1. I know I can do it by putting a Close button on the 'NewTask' form but it is just a data entry form and requires no other buttons. So how does one reference, "Release()" a form other than "ThisForm"? TIA. Have a nice day.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform