Applies To
TQDB, TQDBItem, TQDBView
Declaration
procedure Add(Stream : TStream; Key : TKey);
Description
The Add method inserts an item into the QDB file. The item is provided as a stream (usually, but not necessarily, a memory stream). The Key supplied is used to index the item. The index is kept in alphabetical order of key with or without case-sensitivity.
Add is to be preferred to AddItem and AddStreamItem which are provided only for compatibility.
If you intend to add many items at once use the PrepareToAdd method to speed up the process.
Attempting to add an item with a duplicate key will raise an EQDBIndexError exception. If the FileName property is not set (i.e., Ready is false) the Add method raises an EQDBNoFile exception.