VB 08
VB 08
• Similar to arrays of variables, you can group a set of controls together as an array. The
• following facts apply to control arrays:
• The set of controls that form a control array must be all of the same type (all
textboxes, all labels, all option buttons, etc.)
• You set up a control array by naming one or more controls of the same type
the same name and set the Index property of each control in the array to a non-
negative value (i.e., the controls in the control array are usually indexed from 0 to one
• less than the number of controls in the array).
• To refer to a member of a control array, the syntax is:
• ControlName(Index)[.Property]
• txtField(0).Text