<-- Previous || Up || Next -->

Value Property
List Class

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

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

Example:
    Assuming
       Dim lstTemp As New List
       lstTemp.Add "SubName"
    leaves
       lstTemp.Value(1) = "SubName"
See also:
    Count Property
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.
v1.3 BugFix: This Property Get Function has been fixed to support the retrieval of Object and DataObject type Values.

Public Property Let Value( _
      ByVal vElement As Long _
    , ByVal vValue As Variant _
    )

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

Example:
    Assuming
       Dim lstTemp As New List
       lstTemp.Add "SubName"
    for example
       lstTemp.Value(1) = "FunctionName"
    leaves
       lstTemp.Value(1) = "FunctionName"
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.
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.

Public Property Set Value( _
      ByVal vElement As Long _
    , ByVal vValue As Variant _
    )

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

Example:
    Assuming
       Dim lstTemp As New List
       lstTemp.Add "SubName"
       Dim objTemp As Object
       Set objTemp = Nothing
    for example
       Set lstTemp.Value(1) = objTemp
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.
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.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.