Public Property Get Item( _
ByVal vElement As Long _
) As Variant Assuming
stkTemp.StringView() = "(Top) 4444, 333, 22, 1 (Bottom)"
for example
Dim varTemp As Variant
varTemp = stkTemp.Item(2)
leaves
varTemp = 22See also: NthFromTop PropertyvElement: 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 Item( _
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, 33, 555, 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 Item( _
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.