Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>ddrestore()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ddRestore()
Perform a restore of all the database
------------------------------------------------------------------------------
Syntax:

     ddRestore( [<nPacker>], [<cPath>],
                      [<cBackupName>] ) --> lRet

Parameters:

     <nPacker>  Packer to use for the restore
     #include "dfBackup.ch"
     +----------------------+
     | #define     | Valore |
     |-------------+--------|
     | DDBKP_PKZIP |   0    | --> DEFAULT
     | DDBKP_ARJ   |   1    |
     | DDBKP_RAR   |   2    |
     +----------------------+
     <cPath>    Path to use for get the backup
     <cBackupName> Backup name. DEFAULT "DDBACKUP"

Returns:

     <lRet>        If .T. the restore is make successfull

Description:

     Perform a restore of all the database

Example:

     . Example 1
     
     // Restore with the default
     IF ddRestore()
        dbMsgErr("Restore successfull")
     ENDIF
     
     
     . Example 2
     
     // Restore with RAR
     #include "dfBackup.ch"
     IF ddRestore( DDBKP_RAR )
        dbMsgErr("Restore successfull")
     ENDIF
     
     
     . Example 3
     
     // Restore with RAR with the backup in the
     // drive B
     #include "dfBackup.ch"
     IF ddRestore( DDBKP_RAR, "B:\" )
        dbMsgErr("Restore successfull")
     ENDIF

See also:

     ddBackup()

See Also: ddBackup()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson