|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I am a bad programmer, but I still want this to work. I didn't see anything about this in the forums which surprised me because arrays are usually big time talked about. Anyways, my problem is I want to do a For/Next loop with my array, and im using the array.GetUpperBound(1) command, but it's still not working. the 1 is because I want to use the 2nd dimension in my array. My array has a set 1st dimension... 0-25. But my 2nd dimension is anywhere from 4,000 to 15,000. (I'm using all the words in the dictionary.) So my array is like this abc(0,0) = 1st word in A words list. "aahing". So if I put abc(25,0), thats the first word in the Z Word list. So now ur getting the picture. I have x as the first dimension in the array. I want to use it but you can't say something like abc(x,.GetUpperBound(1)) because it doesn't like it. So how do I make abc know that I am trying to use x as the first dimension. Here's a little snippet of my code with variables dimmed as well. For y = abc.GetLowerBound(1) To abc.GetUpperBound(1) If abc(x, y) = scramble Then list.Add(scramble) output.Items.Add(scramble) EndIf So anyways, output is my listbox. And im trying to tell it to kick out any words that are in that array. List is my array that keeps track of the words I've scrambled so far so there are no repeats. I would really like to keep the code virtually the same. So if you have any suggestions they would be greatly appreciated. Maybe I didn't put enough information out. If that's the case, just post your MSN Messenger in here and I'll get ahold of you. Or email me at rekker_541@hotmail.com. TY Pitiful Programming Person ![]() Side Note: I have another For loop that it actually works in. I don't know why though. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > .NET Development > Help neede on a 2 dimensional Array |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|