GetItem method

Applies To
TQDB, TQDBItem, TQDBView

Declaration
procedure GetItem(ItemPtr : pointer);

Description
The GetItem method (provided only for compatibility) loads the current item into the memory referenced by ItemPtr. It is essential that the memory referenced by ItemPtr is large enough to hold the item. The ItemSize property can be used to discover how much memory is needed.

GetItem has been superceded by the Get method which handles memory allocation itself using memory streams. Only use GetItem and ItemSize if you absolutely have to.

If the FileName property is not set the GetItem method raises an exception.