Access an item from an array

M

Maurice Mertens

Hi,

I have an array which is filled with strings:

Dim aArray(5,1) As String

aArray(0,0) = "item0" : aArray(0,1) = "item0 information"
aArray(1,0) = "item1" : aArray(1,1) = "item1 information"
aArray(2,0) = "item2" : aArray(2,1) = "item2 information"
aArray(3,0) = "item3" : aArray(3,1) = "item3 information"
aArray(4,0) = "item4" : aArray(4,1) = "item4 information"
etc.

Is it possible to set an item from this array quickly without having to
step through the array? I.e. : I know the value "item3" and I want to
change the value "item3 information" then to another value. I don't want to
step through the array until I find "item3".


--
Met vriendelijke groet / With regards / Saludos,
Moviat Automatisering


Maurice Mertens
mauricem@moviat_KillSpamWordForEMail.nl

tel: +31 162 470 534
fax: +31 162 470 502
 
D

Douglas J. Steele

There's no short cut using an Array.

You could consider using a Collection, though.
 

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