How about this.visible = .f.?

Allen wrote:

You can sort of but you need to destroy the reference on the form they are
put on. Note VFP6 had a bug that caused C0..5 errors when the container
destroyed itself because the code return went with the container and
referenced code that no longer existed. I don't know about 7 and 8 but VFP9
works ok
Allen
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Malcolm Greene
Sent: 22 October 2006 00:16
To: [EMAIL PROTECTED]
Subject: Can an container destroy itself?

I have some containers that users can interactively add to a form to
display additional status info.

I would like to users to be able to double click on these containers to
destroy them. I thought that I could have called This.Destroy() in the
container's DblClick() event to have the container destroy itself, but
this does not work.

Suggestions?

Thanks!
Malcolm



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to