Count Property

Object List Next Object

Defined By:
ControlGroup

Description:

Indicates the number of controls and embedded forms within the group.

Details:

When used in a For...Next loop, this property allows you to quickly define the number of controls in a group and then perform some action on this group. This is helpful when you want to do things such as shift all controls to a new position, or enable/disable, or delete several controls at once. Valid indices for a ControlsGroup lie in the inclusive range 0 to Count-1.

You can also use this property in an If TypeOf statement to perform a more specific action on a designated type of control. For example, you may want to change a particular property value for all buttons or checkboxes in the group.

Data Type: Integer (Read Only)