Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release thisForm vs. thisForm.release()
Message
 
To
25/07/2004 22:22:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00927764
Message ID:
00927813
Views:
27
When closed with myform.release, the form "closed" and vartype() returned "U". With release myform, the form remained and vartype() returned an "X" but did not call the forms release method.

>When the form closed with THISFORM.Release() did the form reference get changed to NULL?
>
>Also, that's good for the "regular" case, Terry.
>I wonder what the result might be when there is a dangling reference at play. My guess is that the form will close but the form object will remain.
>
>cheers
>
>
>>I created a little form (MyForm) and put messagebox([release]) in the release event and saved it. In the command window, I declared the form's name public and then "did" (do) the form (do form myform).
>>
>>In the command window RELEASE MyForm did not call the form' release method, but it did change ther vartype(myform) from "O" to "U". Myform.Release opened the message box and then the form closed. One calls the release method of the object and the other does not.
>>
>>
>>>Is there any difference between "release thisForm" and "thisForm.release()"?
>>>
>>>Thanks,
>>>Javier.
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform