The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

OS_Pizza's avatar
OS_Pizza
Contributor III
3 years ago
Solved

Dictonary variable

I want to update the parameter of my dictonary . How can i achieve it? .add adds the value in the dictonary. Is there any update function to update the value of that key in dictonary Dim params2 As...
  • JackLacava's avatar
    3 years ago

    Two ways:

    ' Explicit
    myDict.Item("myKey") = newValue
    ' Shortcut
    myDict("myKey") = newValue

    For more help, have a look at https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2?view=netframework-4.7.2.