Applies To
TQDB, TQDBItem, TQDBView
Declaration
procedure Save;
Description
The list of keys for a QDB file is stored in memory but new items themselves are written directly to the working QDB file. This means that the index portion of the QDB file (which is only read once at load-time) is usually out of sync with the corresponding data portion.
The Save method writes out the list of keys to the file bringing the two portions back into harmony. Then, if any disaster should befall your computer, the two working files will still be available and can be recovered (see OrphanToRecover and Recover).
If you want to trade data security for execution speed, Save may be called after every change to the database.
During the processing a ProgressUpdate event is generated at intervals.
If the FileName property is not set (i.e., Ready is false) the Save method raises an EQDBNoFile exception.