Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with the dodefault() function

Status
Not open for further replies.

dawg

Programmer
Dec 20, 1999
22
US
I have a program at my shop, not written by myself that I am trying to modify. They are using the dodefault() function to execute an event that paints the screen with information. I have went to help to find out about this function and found some good stuff. I then ran the
aclass() function to found out the parents of this class object. I looked and found them, but neither one have the event (a home made one) that the dodefault() is executed in. Any ideas??

Thanks,

Tim Phillips
 
HI
DODEFAULT() is the code put in any event to do any default behaviour or to execute the code put in its parent class.
It could be.. a parent class which again inherits the code put in its parent class.. so on..

At times, the dodefault() is put in a form using a parent class.. even though there may be no code in the parent class... obvious reason is that in future if any code is added in the parent class, the child will inherit that. Otherwise, since some code is added in the child, subsequent parent coding will not have the effect in the child. SO as practice, I always put dodefault in any event to take care of the future.

Hope this helps you to understand :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top