Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CUSTOM objects not in ControlCount
Message
 
To
12/02/2003 16:31:31
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00752483
Message ID:
00752493
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform