Decleration of Dictionary with string, array: Dictionary<String, Int23[]>

I am trying to create a dictionary variable of the type, <String, Int32>. Studio accepts this as a variable type, but it does not accept the decleration: new Dictionary(of String, Int32). Any suggestions as to how i declare this, of whether it is not possible?

Thanks!

1 Like

fine
welcome to uipath community
the declaration should be like
New Dictionary(of String, Integer)

Cheers @3-rimo

Can you explain if you are trying to add the value as array of type Integer @3-rimo?

1 Like

Fine
if we are trying to add a array of integer in the dictionary value then the initialisation be like this
New Dictionary(of String, Integer())

Cheers @3-rimo

2 Likes

Yes, that is what i am trying to do. I want a key to send me to a specific array of integers.

It worked, thank you!

1 Like

Fantastic
Cheers @3-rimo

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.