From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property AfterOpen: TDataSetNotifyEvent read FAfterOpen write FAfterOpen;


__property TDataSetNotifyEvent AfterOpen = {read=FAfterOpen, write=FAfterOpen};


Type Visibility Source Unit Parent
event public
Data.DB TDataSet


Occurs after an application completes opening a dataset and before any data access occurs.

Write an AfterOpen event handler to take specific action immediately after an application opens the dataset. AfterOpen is called after the dataset establishes access to its data and the dataset is put into dsBrowse state. For example, an AfterOpen event handler might check an ini file to determine the last record touched in the dataset the previous time the application ran, and position the dataset at that record.

AfterOpen is an event handler of type Data.DB.TDataSetNotifyEvent.

See Also

Code Examples