filecataloger.com > Script > Function -- ViewFileContent

ViewFileContent Function

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

ViewFileContent(FileItem)

Arguments:
Name Description
FileItem a file catalog item to view content.
 
return value:
Value Description
True Viewing is successfully.
Fail Viewing is failed.
example:

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

CreateDB(DBPath)
OpenDB(DBPath)

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

IsOK = LoadFileContent(fi)

IsOK = ViewFileContent(fi)

If IsOK Then MsgBox "ViewFileContent is ok!"

   
See Also:

LoadFileContent

LoadFileContents

ClearFileContent

ClearFileContents

©2008 Greendgh Software. All rights reserved. Privacy statement