Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to release a form
Message
From
20/09/2009 12:33:06
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01425336
Message ID:
01425345
Views:
51
>>>Hi,
>>>
>>>I have a form and in one of the methods of this form I want to release this form (based on some condition). So I have code
>>>
>>>thisform.release()
>>>
>>>
>>>But the form is not released. The program goes to the next line after the thisform.release(). How do I release a form in a middle of any method of the form?
>>
>>Check the Form.Destroy event.
>>If it is fired, and form still live,
>>then you have a form's member dangling pointer.
>
>Do I need to put some code in the .Destroy even to see if it fires? Because without a code in this method I don't see a way to check if it fires.
>
>Thank you

On command windows:
ACTIVATE WINDOW "Debug Output"
SET EVENTLIST TO "Destroy"
SET EVENTTRACKING ON
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform