Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_DictionaryEnhanced VBA Dictionary

Public Property Get Item (
Key As String,
Optional SuppressError As Boolean = False
) As Variant

Returns the value of the Dictionary element with the specified key

Key as String

The key

Optional SuppressError as Boolean = False

Don't print any error message if an error is thrown, just return Null

Call Template:

Dim obj As New xf_Dictionary
Dim v As Variant
v = obj.Item(Key)
v = obj.Item(Key, SuppressError)

See Also:

Example 1:

Debug.Print TestDict.Item("Nicaragua")  ' the value is scalar
Set v = TestDict.Item("Nicaragua")      ' the value is an object
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd