Property List Class

Value

Get the Value of a specific numbered item within the List .

Signature (Visual Basic / VBA)

Public Property Get Value( _
    ByVal vElement As Long _
    ) As Variant

Code Examples

    Assuming
       Dim lstTemp As New List
       lstTemp.Add "SubName"
    leaves
       lstTemp.Value(1) = "SubName"
    Assuming
       Dim lstTemp As New List
       lstTemp.Add "SubName"
    for example
       lstTemp.Value(1) = "FunctionName"
    leaves
       lstTemp.Value(1) = "FunctionName"
    Assuming
       Dim lstTemp As New List
       lstTemp.Add "SubName"
       Dim objTemp As Object
       Set objTemp = Nothing
    for example
       Set lstTemp.Value(1) = objTemp
Public Property Let Value( _
      ByVal vElement As Long _
    , ByVal vValue As Variant _
    )
Public Property Set Value( _
      ByVal vElement As Long _
    , ByVal vValue As Variant _
    )

Parameters

Parameter Description
vElement Position within the List of the Value will be returned. vElement must be between 1 and Count or this Property will return an Empty value.
vElement Position within the List of the Value will be changed. vElement must be between 1 and Count or this Property assignment will silently do nothing.
vElement Position within the List of the Value will be changed. vElement must be between 1 and Count or this Property assignment will silently do nothing.

Notes & Version History

v1.3 BugFix This Property Get Function has been fixed to support the retrieval of Object and DataObject type Values. Change the Value of a specific numbered item within the List .
vValue The new Value that will be copied into position vElement. vValue can be any type of Variant value (vbString, numeric, vbDate, vbArray, etc.) except an Object or DataObject.
v1.3 BugFix The corresponding Property Set Subroutine supports the storage of Object and DataObject type Values. Change the Value of a specific numbered item within the List .
vValue The new Object or DataObject type Value that will be copied into position vElement.
v1.3 BugFix This new Property Set Subroutine has been added to support the storage of Object and DataObject type Values.