How do I check if a value exists in a Dictionary(Of int, String)?
Let’s say I have [{1, 'One'};{2, 'Two'};{3, 'Three'}], how to check if ‘Two’ exists ?
You can use ContainsValue:
If myDictionary.ContainsValue("Two") Then
debug.print("Exists")
End If
That’s all you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With