OnKey event

Applies To
TQDBItem, TQDBView

Declaration
property OnKey : TKeyEvent;

Description
The Store method calls the OnKey event to supply the key necessary to index the item. If no OnKey handler has been assigned the EQDBKeyError exception is raised.

Example

   procedure OnKeyHandler(Sender : TObject; var Key : TKey);
   begin
        Key := Q.AsString['KeyField'];
   end;