API:Bde.DBTables.TBDEDataSet.AfterOpen

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AfterOpen: TDataSetNotifyEvent read FAfterOpen write FAfterOpen;

C++

__property AfterOpen;

Properties

Type Visibility Source Unit Parent
event published
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TBDEDataSet

Description

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

Bde.DBTables.TBDEDataSet.AfterOpen inherits from Data.DB.TDataSet.AfterOpen. All content below this line refers to Data.DB.TDataSet.AfterOpen.

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