.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 6th, 2005, 05:43 PM
ReKKeR ReKKeR is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 ReKKeR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 52 sec
Reputation Power: 0
Exclamation Help neede on a 2 dimensional Array

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.

Attached Files
File Type: txt vbcode.txt (7.1 KB, 330 views)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Help neede on a 2 dimensional Array


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT