Show: Delphi C++
Display Preferences

Data.DB.TDataSet.Open

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Open; overload;

C++

void __fastcall Open()/* overload */;

Properties

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

Description

Opens the dataset.

Call Open to set the Active property for the dataset to true. When Active is true, data can be populated with data. It can read data from a database or other source (such as a provider). Depending on the CanModify property, active datasets can post changes.

Setting Active to true:

Triggers the BeforeOpen event handler if one is defined for the dataset.

Sets the dataset state to dsBrowse.

Establishes a way to fetch data (typically by opening a cursor).

Triggers the After Open event handler if one is defined for the dataset.

If an error occurs during the dataset open, dataset state is set to dsInactive, and any cursor is closed.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance