Addressing a named Array

W

William Foster

Good morning all,

Does anyone know how to address a named Array, for instance:

Array_States(1) = "New South Wales"

Array_Name = "Array_States"
Value = Array_Name(1)

Therefore, Value = "New South Wales"

I know that this looks very messy, but hopefully you can understand what
I mean.

Basically I have about 20 or 30 arrays that I want to be able to called
via one procedure, and just change the array that each name that I am
referencing.

Any assistance you may be able to provide would be appreciated.

Yours sincerely,

William Foster
 
T

Tom Shelton

Good morning all,

Does anyone know how to address a named Array, for instance:

Array_States(1) = "New South Wales"

Array_Name = "Array_States"
Value = Array_Name(1)

Therefore, Value = "New South Wales"

I know that this looks very messy, but hopefully you can understand what
I mean.

Basically I have about 20 or 30 arrays that I want to be able to called
via one procedure, and just change the array that each name that I am
referencing.

Any assistance you may be able to provide would be appreciated.

Yours sincerely,

William Foster

*** Sent via Developersdexhttp://www.developersdex.com***

off the top of my head, I would make use a dictionary or a hashtable
of arrays - depending if the arrays were the same type...
 
G

Guest

Basically I have about 20 or 30 arrays that I want to be able to called
via one procedure, and just change the array that each name that I am
referencing.

How about using dictionarys + lists/arrays instead

For example:

State("New South Wales")(0) = "Some Province/State"
 
W

William Foster

Thanks for the tips everybody, I am interested in the dictionary option,
I haven't used that previously.

I will give it a try tomorrow and call out for more help if I need it (I
am trying to be positive, but I am pretty sure I will need it).

Yours sincerely,

William Foster
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top