Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to place dodefault()
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Where to place dodefault()
Miscellaneous
Thread ID:
01663345
Message ID:
01663345
Views:
68
Hi,

What is a good practice when a form is based on another form, as far as where to place the dodefault() in the child form?

My feeling is that it should be at the top of the child form method. For example.

Say a base form is mybaseform (in MyBaseForms.vcx). And it in the INIT method of this form there is a code.

Then you create a new form MyChildForm based on the MyBaseForm. And it has some code in the INIT() method too. I think that in the child form INIT method the sequence should be as follows:
*-- Init method of child form
dodefault()  && call the code in the parent INIT method
*-- put the code specific to the child form INIT method
Does the above make sense or there is/are issue(s)?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform