PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
Addressing a named Array
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
Addressing a named Array
![]() |
Addressing a named Array |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 Developersdex http://www.developersdex.com *** |
|
|
|
#2 |
|
Guest
Posts: n/a
|
On Feb 12, 6:30 pm, William Foster <nos...@devdex.com> wrote:
> 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... -- Tom Shelton |
|
|
|
#3 |
|
Guest
Posts: n/a
|
William,
Be aware that this is a 24 hours newsgroup not only for New South Wales. It is hard to understand for me what you want, but the most goes in my idea the answer on your question to Enum. http://msdn2.microsoft.com/en-us/li...ystem.enum.aspx Cor "William Foster" <nospam@devdex.com> schreef in bericht news:ud1M75wTHHA.5068@TK2MSFTNGP03.phx.gbl... > 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 Developersdex http://www.developersdex.com *** |
|
|
|
#4 |
|
Guest
Posts: n/a
|
William Foster <nospam@devdex.com> wrote in news:ud1M75wTHHA.5068
@TK2MSFTNGP03.phx.gbl: > 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" |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 *** Sent via Developersdex http://www.developersdex.com *** |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

