Click here to Skip to main content
15,922,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form and on it I have three columns. The first column has three check boxes, the second has three radio buttons and the third has a combo box with three value stored in it. How can I use an object array to store the value of each item selected in the above lists?
Posted
Comments
ZurdoDev 6-May-14 13:33pm    
Where are you stuck? You can create an array and then fill in the values.

1 solution

Why?
It's a poor idea, because the data types are all different - which means you have to "remember" what item is where and what type it is before you can use the data again.

Personally, I'd create a class to hold the info instead of an array, so that you access it as correctly typed values directly as properties. Easier, cleaner, and much more maintainable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900