473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Addressing a named Array

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 ***
Feb 13 '07 #1
4 1066
On Feb 12, 6:30 pm, William Foster <nos...@devdex.comwrote:
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

Feb 13 '07 #2
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/lib...stem.enum.aspx
Cor

"William Foster" <no****@devdex.comschreef in bericht
news:ud**************@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 ***

Feb 13 '07 #3
William Foster <no****@devdex.comwrote 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"
Feb 13 '07 #4
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 ***
Feb 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Frank Stephan | last post by:
Hi, im using Struts with nested tags for form validation. So I end up with form elements named like this risikenManuell.praemieNeu risikenManuell.praemieNeu .... I would like to do a...
4
by: elziko | last post by:
I have a four dimensional array which I am trying to flatten into a single dimension array: Dim Array4D(10,10,10,10) as Single I can create my one dimensional array to be big enough to contain...
13
by: Martin Altschwager | last post by:
Hi, I desperately need some help with what I assume to be a minor problem that I just can't solve. I'm writing a page where on mouseover a link, an image needs to be displayed and some text,...
7
by: adam | last post by:
i'm working on a portion of a CMS that allows content-admins to browse a product list, and add individual products into the taxonomy by clicking checkboxes next to categories they might belong in....
0
by: gerritmitchell | last post by:
Hi, I have a situation where I need to send a SOAP message from a receiver through multiple intermediaries and then to an ultimate receiver. The intial sender will tell the intermediary where...
2
by: Je-Givara | last post by:
i read in some books that the array address in Unique Could any one explain me and show that array addressing is unique. Thanks for advance!
1
by: =?Utf-8?B?dWx0cmFuZXQ=?= | last post by:
We have a client that uses .Net that needs to work against our Java (xfire) based WS. My question is: how can a .Net (C#) WS client be configured to not send WS-Addressing headers? The client in...
5
by: Hendrik van Rooyen | last post by:
Is there a canonical way to address the bits in a structure like an array or string or struct? Or alternatively, is there a good way to combine eight ints that represent bits into one of the...
0
by: Lie Ryan | last post by:
On Fri, 10 Oct 2008 00:30:18 +0200, Hendrik van Rooyen wrote: You'll find that in most cases, using integer or Boolean is enough. There are some edge cases, which requires bit addressing for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.