TREEGEN COMPONENT 4.01
Items Object
Last modified: April 6,1999 
© 2000 Advantys. All rights reserved.

Count

The Count property returns the number of elements in the collection.

Syntax
.Count

Return Values
Returns an Long value which is the number of elements in the collection.

Examples
<%
Response.Write("NbItems=" & MyTree.Items.Count)
%>


Item

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
%>


Add

The Add method adds a new item in the collection.

Syntax
.Add(oItem)

Parameters
oItem is a TreeGen Item object

Examples
<%
MyTree.Items.Add(oItem)
%>


Remove

The Remove method removes an item from a collection.

Syntax
.Remove(Index)

Parameters
Index is a variant value

Examples
<%
MyTree.Items.Remove(2)
%>


© 2000 Advantys. All rights reserved.