filecataloger.com > Script > Object -- Catalog Group List

Catalog Group List Object

Remarks:
The Object represents a file catalog group list. Support standard VB collection.
Property:
Name Description
Count Retrieve the count of a file catalog group list.
Functions:
Name Description
Item Retrieve a catalog group object from the list. The value is default.
Add Add a catalog group object to the list.
Remove Add a catalog group object to the list.
GetItemEx Retrieve a catalog group object from the list.
Example:

Set a = CreateGroupList()

a.Add CatalogDB.CatalogRoot.SubItems("UserGroup1")
a.Add CatalogDB.CatalogRoot.SubItems("UserGroup2")
a.Add CatalogDB.CatalogRoot.SubItems("UserGroup3")

Msgbox "The count of GroupList is " & CStr(a.Count)

Msgbox "The name of UserGroup1 is " & a("UserGroup1").Name

Msgbox "The name of index 2 is " & a.Item(2).Name

a.remove CatalogDB.CatalogRoot.SubItems("UserGroup3")
a.remove "UserGroup2"
a.remove 0

Msgbox "The count of GroupList is " & CStr(a.Count)

   
See Also:

Catalog Item List Object

CreateItemList Function

CreateGroupList Function

©2008 Greendgh Software. All rights reserved. Privacy statement