Applies To
TQDB, TQDBItem, TQDBView
Declaration
procedure Change(Stream : TStream);
Description
The Change method replaces the current item with the item in the stream parameter. If the new item is smaller than the one replaced it simply overwrites it. Otherwise the old item is deleted and the new one added. Be aware that such repeated changes can cause the file to grow and be in need of packing..
A successful Change generates an OnChanged event.
Since it handles huge items transparently under all versions of Delphi, the Change method should be preferred to ChangeItem or ChangeStreamItem which are only provided for compatibility.
If the FileName property is not set (i.e., Ready is false) the Change method raises an EQDBNoData exception.