Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Practice-AddObject() to PARENT and THISFORM
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Best Practice-AddObject() to PARENT and THISFORM
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01060424
Message ID:
01060424
Views:
55
Hi all

I have a grid class and in it's Init() I ADDOBJECT() THISFORM and THIS.PARENT one each. When I put in the THISFORM.oCustom = .NULL. and THIS.PARENT.oCustom = .NULL. for cleaning up my doings, it seems that the objects are already destroyed by the form and parent classes, fair deal.

But is this the way it should have been handled? Or is there a better OOPian way to do ADDOBJECTS() onto the formand parent classes?

Please advise.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform