Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to destroy this object?
Message
From
18/10/2006 21:58:32
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
18/10/2006 19:52:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01163091
Message ID:
01163186
Views:
13
>>I tried putting both of those commands into the form's queryunload and neither works. If the search object is showing, my form will not close until I close the search object.
>>
>>If it helps you to understand my situation, the search object is a toolbar with a textbox and a close button in it. My form will not close unless I select the close button on the toolbar first.
>
>In that case,
>
* grid.destroy
>this.removeobject("oSearch")  && or whatever is its name
I thought about that too but it doesn't work.

What I ended up doing is in the form's queryunload, I recursively go thru all controls checking to see if it is a grid and then set the grid's custom property that stores a reference to the object to NULL. That seems to do it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform