filecataloger.com > Script > Function -- ImportFromDB

ImportFromDB Function

Remarks:
Import a exist file catalog database to the current opening file catalog database.
Syntax:

ImportFromDB(ParentGroup, DBPath)

Arguments:
Name Description
ParentGroup the parent catalog group.
DBPath The catalog database path to import.
 
Return value:
Value Description
True Importing is successfully.
Fail Importing is failed.
example:

CreateDB("c:\sample1.fdb")
OpenDB("c:\sample1.fdb")

Set ug = AddUsergroup("UserGroup1", CatalogDB.CatalogRoot)
ApplyAll

CloseDB

CreateDB("c:\sample2.fdb")
OpenDB("c:\sample12.fdb")

Dim IsOK
IsOK = ImportFromDB(CatalogDB.CatalogRoot, "c:\sample1.fdb")

If IsOK Then MsgBox "The execution of ImportFromDB Function is successful!"

   
See Also:

ExportToDB Function

©2008 Greendgh Software. All rights reserved. Privacy statement