ChangeItem method

Applies To
TQDB, TQDBItem, TQDBView

Declaration
procedure ChangeItem(ItemPtr : pointer; ItemLen : TDataIndex);

Description
The ChangeItem method (provided only for compatibility) replaces the current item with the item in the ItemPtr parameter. The ItemLen parameter indicates the length of the new item. 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 need to be Packed.

Since it handles huge items transparently under all versions of Delphi, the Change method should always be preferred.