Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pitfall when trying to gather information about controls
Message
From
27/06/1997 13:08:09
 
 
To
27/06/1997 13:03:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00037938
Message ID:
00037939
Views:
23
>Here's a pitfall I found when trying to gather information about controls on form from within the Init() method of one of the controls on that form...
>
>When using CREATEOBJECT() and .Show() to show a form from a .vcx, if within the Init() event of one of the controls on the form you check the ControlCount property of the form, it will not show the same value as when the form is run from an .scx. This is because the controls have not yet been Added to the form. After they have all Init()ed, they are accessible. Be warned!

Yes, individual Init events should be used for strictly individual (this control only) purposes. For 'common' deals use Form.Init
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform