Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of instantiation
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Order of instantiation
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01292155
Message ID:
01292155
Views:
84
I am trying to understand the order of instantiation and how to use it.

Here is an example:

Form Class A (base class, based on VFP form class). This class has a method to manipulate form controls (textboxes, buttons, labels, etc.). Let’s call this method MYMETHOD1(). But Form Class A has NO controls.

Form Class B (based on Class A, above). This form has controls (textboxes, labels, pageframe, etc.) I need to call method MYMETHOD1() in INIT method of this class (class B). Should I first call DODEFAULT() to make sure that all controls are instantiated before calling MYMETHOD1()? Or VFP instantiate all controls first, by default?

Thank you in advance for any help.
"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