CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Posts
    17

    how to use an array of control's variables?

    Hello, in my application there are 864 variables associated to each control(edit boxes and radio buttons), when the application is started, all this variables must to be updated from a file. So it's a lot of work to type all this code, my question is: is there any possibility to use an array (in this case will be 3 or more) in which each element will be a variable of each control? how can i do this?

  2. #2
    Join Date
    Dec 2008
    Posts
    144

    Re: how to use an array of control's variables?

    Do you create all your controls dynamicly?

  3. #3
    Join Date
    Oct 2009
    Posts
    17

    Re: how to use an array of control's variables?

    I didn't do it yet, there will be 72 main controls in the app(edit boxes and radio btn), i created only a few to test some things. I want to put these 72 controls variables into an array , because after that, i have to associate these 72 variables to a one of 12 groups of 72 variables depending of another control. I don't know if i was clear, my english is bad.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: how to use an array of control's variables?

    Can you take a screenshot of a portion of the controls you would like to display and post it here?

    Generally trying to display this many controls at once leads to a horrible user experience. If you post a screenshot, we may be able to come up with an alternative that is both easier for a user and easier to code.

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