Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CUSTOM objects not in ControlCount
Message
 
À
12/02/2003 16:31:31
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00752483
Message ID:
00752493
Vues:
20
You mentioned that they exist as "properties" on a custom control... It won't see them based on how you probably created them.

ex:
This.MyProperty1 = createobject( "someControl", "ofSomeClass" ...)
This.MyProperty2 = ....
etc.

Since you are not adding to the current custom control, it doesn't care and will just shove the pointer into the respective MyProperty1 , 2, 3 etc.

If this is like the scenario you have, you may want to approach it as this...

This.AddObject( "MyControl1", "ofSomeClass"... )
This.AddObject( "MyControl2", "ofSomeClass"... )

Now, the ControlCount will see the two controls AND allow you to have an object reference to them via...

This.MyControl1.(some property)...
This.MyControl2.(some property)...

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform