General information
Title:
How to check a Control has controls?
Environment versions
Network:
Windows 2008 Server
How to check an object in my container, which containes 3 objects, has controls?
I have a container with 3 objects,
objects(1). has the usual number of objects
objects(2) and 3 are blank
MyObject.ControlCount returns 3
myObject.Controls(1).baseclass returns "Container"
myObject.Controls(2).baseclass errors
and although indeed debugger shows value (Object) for myObject.Controls(2) and 3,
debugger also shows myObject.Controls.+Controls(1) and no + sign for Control(2) and Controls(3) so apparently empty. How to check in code for this situation?
I have a recursive setallprops function which errors on Controls(2) = empty control
Regards,
Koen
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only