ASNA DataGate® Controls Help
|
Archive Control
Events
MethodsProperties\|
Enumerated Constants
Control Palette Icon:
Description:
The Archive control is an OCX control that allows you to work with archive files.
Working with Archives:
To save a group of database files to an archive, you must first build a list of items to save via the AddFileToSave, AddDirectoryToSave and AddMemberToSave methods. These methods build a list internally that is used to specify what items are to be saved when a call to Save is made. The ObjectsToSaveCount property gives a count of items in the save list. The list of items to save is not cleared until a call to ClearSaveList is made.
Similarly, to restore an archive to a database, you must first build a list of items to restore via the AddFileToRestore, AddDirectoryToRestore and AddMemberToRestore methods. These methods build a list internally that is used to specify what items are to be restored when a call to Restore is made. The ObjectsToRestoreCount property gives a count of items in the restore list. The list of items to restore is not cleared until a call to ClearRestoreList is made.
After a call to either Save or Restore, the ObjectsAccessedCount and ObjectsNotAccessedCount properties will contain the count of objects saved or restored and the count of objects not saved or not restored, respectively.
The contents of a given archive can be found by using the Enum method.