Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of object creating for a form
Message
From
18/06/1999 12:11:09
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00231124
Message ID:
00231464
Views:
14
>I don't think so Paul. That was the first thing that came to my mind also but it doesn't work that way. Maybe this have been change in VFP6 (I'm using VFP5 due to stability problems with VFP6 which is another story). Thanks.
Hi,
VFP determines the order to fire the Init methods(and other event processing) by the ZORDER property. This is the property is only affected by "Bring to Front" and "Send to Back" options in the designers. For the Init event, you are only assured that contained objects will fire their Init events before their containers (from inside to outside in container heirarchy). Although ZORDER controls the order of instantiation among objects that are at the same level in the containership heirarchy, it is not safe to rely on this order, it is too easy to disturb. Jim Booth's solutions are preferable to relying on this feature of VFP.

Ned
Ned

Reality is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform