CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Control Arrays

  1. #1
    Join Date
    Apr 1999
    Location
    Beaverton, OR
    Posts
    241

    Control Arrays

    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.


  2. #2
    Join Date
    May 1999
    Posts
    31

    Re: Control Arrays

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured