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

Catalog Item List Object

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

Dim il
Set il = CreateItemList()

if IsObject(il) Then
MsgBox "CreateItemList is ok."
else
MsgBox "CreateItemList is fail!" & GetLastErrorMessage()
End If

il.Add(CatalogDB.CatalogRoot)
il.Add(CatalogDB.SearchGroup)

MsgBox "ItemList Add is ok."

Dim RootByIndex, RootByName
Set RootByIndex = il(0)
Set RootByName = il("Lib")

MsgBox "ItemList Get is ok."

MsgBox "ItemList Count is " & il.Count

il.Remove(CatalogDB.CatalogRoot)
il.Add(CatalogDB.CatalogRoot)
il.Remove("Lib")
il.Add(CatalogDB.CatalogRoot)
il.Remove(0)

MsgBox "ItemList Remove is ok."

   
See Also:

Catalog Group List Object

CreateItemList Function

CreateGroupList Function

©2008 Greendgh Software. All rights reserved. Privacy statement