Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form.Release()
Message
From
01/09/1998 13:11:40
 
 
To
01/09/1998 12:52:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00131941
Message ID:
00131950
Views:
37
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