Array with string index

Hi all,
Is it possible to create an array but where index would be a string (Array(“Hello”) = 1,…)?
If not how to easily and logically get around this problem?
Thanks to you.
BB

you could use the Dictionary Class
“Hello” would be a Key

This is what I use so far but I wanted to try once and for all to create an array of this type because it can be a class with several variables.

The values of a dictionary are variants so can be a class instance.

Indeed thank you both.

[quote=478256:@BenotBouillon]Hi all,
Is it possible to create an array but where index would be a string (Array(“Hello”) = 1,…)?
If not how to easily and logically get around this problem?
Thanks to you.
BB[/quote]

Var strArr() as String = Array("hello","world")

Var index as integer = strArr.IndexOf("hello")

// index = 0 here