Property Hash Table Class

Item

Return the Item at a specific numeric position within the hash table.

Signature (Visual Basic / VBA)

Public Property Get Item( _
    ByVal vNumber As Long _
    ) As Variant

Code Examples

    Assuming
       Dim htTemp As New HashTable
       htTemp.Add "SubName", 23
       htTemp.Add "FunctionName", 24
       Dim varTemp As Variant
    for example
       varTemp = htTemp.Item(2)
    leaves
       varTemp = 24
    Assuming
       Dim htTemp As New HashTable
       htTemp.Add "SubName", 23
       htTemp.Add "FunctionName", 24
    for example
       htTemp.Item(2) = "PropertyName"
    Assuming
       Dim htTemp As New HashTable
       htTemp.Add "SubName", 23
       htTemp.Add "FunctionName", 24
    for example
       Set htTemp.Item(2) = Nothing
Public Property Let Item( _
      ByVal vNumber As Long _
    , ByVal vItem As Variant _
    )
Public Property Set Item( _
      ByVal vNumber As Long _
    , ByVal vItem As Variant _
    )

Parameters

Parameter Description
vNumber Position of the hash table entry whose Item should be returned. Generates a runtime error if vNumber is not between 1 and Count .

Notes & Version History

v1.5 Addition This property is new to version 1.5 of Entisoft Tools. Assign a value to the Item at a specific numeric position within the hash table when Item is NOT an Object.
vItem The Item Property of the hash table entry in position vNumber is changed to vItem. Generates a runtime error if vNumber is not between 1 and Count . Assign a value to the Item at a specific numeric position within the hash table when Item IS an Object.
vItem The Item Property of the hash table entry in position vNumber is changed to the Object vItem. Generates a runtime error if vNumber is not between 1 and Count .