filecataloger.com > Script > Function -- DeleteCatalogItem

DeleteCatalogItem Function

Remarks:
Delete the specific file catalog item
Syntax:

DeleteCatalogItem(CatalogItem)

Arguments:
Name Description
CatalogItem The catalogue item wanted to delete.
 
Return value:
Value Description
True Deleting is successfully.
Fail Deleting is failed.
example:

IsOK = DeleteCatalogItems(cil)

Dim DBPath
DBPath = "c:\sample.fdb"

CreateDB(DBPath)
OpenDB(DBPath)

Set ug1 = AddUsergroup("UserGroup1", CatalogDB.CatalogRoot)
Set ug2 = AddUsergroup("UserGroup2", CatalogDB.CatalogRoot)
Set ug3 = AddUsergroup("UserGroup3", CatalogDB.CatalogRoot)

ApplyAll

IsOK = DeleteCatalogItems(CatalogDB.CatalogRoot.SubItems)
If IsOK Then MsgBox "The execution of DeleteCatalogItems Function is successful!"

ApplyAll

   
See Also:

DeleteCatalogItems Function

©2008 Greendgh Software. All rights reserved. Privacy statement