| TREEGEN COMPONENT 4.01 |
| Items
Object Last modified: April 6,1999 © 2000 Advantys. All rights reserved. |
The Count property returns the number of elements in the collection.
Syntax
.CountReturn Values
Returns an Long value which is the number of elements in the collection.Examples
<%
Response.Write("NbItems=" & MyTree.Items.Count)
%>
The Item method access to a item in a collection. This is the default method of the collection object.
Syntax
.Item(key)Return Values
Returns a Item object of the collection corresponding to the key.Examples
<%
for intI=1 to MyTree.Items.count then
Response.Write("ItemID=" & MyTree.Items.Item(intI).ID)
end if
%>
The Add method adds a new item in the collection.
Syntax
.Add(oItem)Parameters
oItem is a TreeGen Item objectExamples
<%
MyTree.Items.Add(oItem)
%>
The Remove method removes an item from a collection.
Syntax
.Remove(Index)Parameters
Index is a variant valueExamples
<%
MyTree.Items.Remove(2)
%>
© 2000 Advantys. All rights reserved.