Ok, so I went and got myself all confused. I have been researching and trying out different things and I get nowhere. I checked out some reference here with the jagged arrays, but they are not what I was hoping.
I'll just put out what I want to accomplish and I hope that someone can help???
I wish to populate two combo boxes. (Lets call them Cbx1 and Cbx2.) The contents of Cbx2 depend on what is chosen in Cbx1. That part I have under control and working well.
The problem is that my code it HORRENDOUS because of the various options in the combo box and using "IF" statement for the second combo box. So I thought that he best thing would be to use a jagged array to define the contents of the two combo boxes.
I would like to define the contents of jagged array through the use of Splitting strings. In this way:
String contents--->Jagged Array contents--->Cbx1 contents-----Cbx2 contents
In this way, I can simply add or delete string elements without changing code.
So, Here are my strings (ex.)
ChoicesStr(0) = "Ford, Mustang, Focus"
ChoicesStr(1) = "Toyota, Camry, Rav, Pilot, Matrix"
ChoicesStr(2) = "Mazda, Protoge"
ChoicesStr(3) = "GM, Rendevous, Vibe, Aveo, G3, Cobalt"
So the strings would be split according using the "," and the first entry of each string would be placed in an array that I would load in Cbx1 and the rest of the entries would be the choices for Cbx2 based on Cbx1. Again, once I get the strings into the Jagged Array, I can figure the rest out.
BTW, this is my first question ever, and I don't understand how many points this should be! it seems fairly easy, but what do I know??? As a side note, let me know if I've over or under pointed it?