Thomas

Thomas

  • NA
  • 111
  • 0

Multidimensional arrays of different types?

Mar 1 2012 6:19 PM
Is it possible to create an array that has different data types?

for example I want to create an array that contains a string (label) and a Color object.
so that I can cycle through the array for the string then assign the Color object.
IE
Color [][] Homes = { {"Single Family", Color.Red},{"Duplex", Color.Blue}, etc...};

Or to do something like that would I need to create a data table?

Answers (2)