Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pitfall when trying to gather information about controls
Message
De
27/06/1997 13:08:09
 
 
À
27/06/1997 13:03:34
Gino Miceli
Lan Professionals, Inc.
Bay Shore, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00037938
Message ID:
00037939
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform