Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of Instantiation
Message
From
20/06/2007 09:08:36
 
 
To
19/06/2007 14:04:22
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01234334
Message ID:
01234470
Views:
20
Is it possible to force Foxpro to instantiate the objects on a form in a specific order? If so, how?

Why do you need to do this?

IMHO, it is very bad programming practice to have yur code rely on the order in which objects are instantiated - it is too easy to break the code.

Instead, you should call a custom method from the form's init() to do whatever setup is required. Since the form's init() fires aftere all of the contained objects have been instantiated, you can be sure that all the required objects are there when your code runs.
Previous
Reply
Map
View

Click here to load this message in the networking platform