|General Tip - Intermediate
Using Control Arrays To Your Advantage
It makes sense to use control arrays to manipulate groupings of similiar controls.
The control array will allow you to loop through groups of similiar controls and perform a desired action. Control Arrays can be especially useful on questionnaire type forms for capturing groups of related data.
The example shown below makes use of two control arrays Text1(Index) representing the text boxes in Column A and Text2(Index) representing the text boxes in Column B. The command buttons will perform actions (Clear, Enable/Disable, Load Text) on the column of text boxes being specified by the selected radio button. To perform the desired action on either array simply loop on the index value of that array.
'Enable / Disable
All contents copyright XTreme Computing unless noted otherwise.