Click to See Complete Forum and Search --> : Control Arrays


nordyj
April 16th, 1999, 05:13 PM
In Visual Basic, you can create, say, 7 edit controls, and give each of them the same name. In this way, you create a control array. You access the individual text boxes with an index number. How does one go about doing this in Visual C++, and can it be done through the class wizard (i.e. when you set up member variables)? Thanks in advance.

Daniel Levine
April 16th, 1999, 09:45 PM
Hi,

I could be wrong, but I'm fairly certain that control arrays are only possible in VB. To do the same thing in the VC++, you would have to declare 7 edit control variable, maybe m_myEdit1 through m_myEdit7. You would do this through the Member Variable tab of the ClassWizard.

Daniel.