Show: Delphi C++
Display Preferences

Data.DB.TDataSet.AfterOpen

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AfterOpen: TDataSetNotifyEvent read FAfterOpen write FAfterOpen;

C++

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

Properties

Type Visibility Source Unit Parent
event public
Data.DB.pas
Data.DB.hpp
Data.DB TDataSet

Description

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

Personal tools
In Other Languages
Previous Versions
Assistance