Public Property Get NthFromTop( _ ByVal vElement As Long _ ) As Variant
Assuming stkTemp.StringView() = "(Top) 4444, 333, 22, 1 (Bottom)" for example Dim varTemp As Variant varTemp = stkTemp.NthFromTop(2) leaves varTemp = 333See also:
Item Property Peek FunctionvElement: Number of the item whose value should be returned. vElement must be between 1 and Count otherwise this Property returns an Empty value (a Variant whose VarType is vbEmpty).
Public Property Let NthFromTop( _ ByVal vElement As Long _ , ByVal vValue As Variant _ )
Assuming stkTemp.StringView() = "(Top) 44, 33, 22, 11 (Bottom)" for example stkTemp.Item(2) = 555 leaves stkTemp.StringView() = "(Top) 44, 555, 22, 11 (Bottom)"vElement: Number of the item whose value should be set to vValue. vElement must be between 1 and Count otherwise this procedure silently does nothing.
Public Property Set NthFromTop( _ ByVal vElement As Long _ , ByVal vValue As Variant _ )
Assuming stkTemp.StringView() = "(Top) 44, 33, 22, 11 (Bottom)" Dim objTemp As Object Set objTemp = Nothing for example Set stkTemp.Item(2) = objTempvElement: Number of the item whose value should be set to vValue. vElement must be between 1 and Count otherwise this procedure silently does nothing.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.