filecataloger.com > Script > Function -- ClearFileContents

ClearFileContents Function

Remarks:
Clear File Content for the specific file catalog item list.
Syntax:

ClearFileContents(FileItemList)

Arguments:
Name Description
FileItemList The file catalog item list to clear content.
 
return value:
Value Description
True Clearing is successfully.
Fail Clearing is failed.
example:

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

CreateDB(DBPath)
OpenDB(DBPath)

Set fi = ImportFile("C:\a1.txt", CatalogDB.CatalogRoot)
Set fi = ImportFile("C:\a2.txt", CatalogDB.CatalogRoot)

IsOK = LoadFileContents(CatalogDB.CatalogRoot.SubItems)

IsOK = ClearFileContents(CatalogDB.CatalogRoot.SubItems)

If IsOK Then MsgBox "ClearFileContents is ok!"

   
See Also:

LoadFileContent

LoadFileContents

ClearFileContent

ViewFileContent

©2008 Greendgh Software. All rights reserved. Privacy statement