FireDAC.Comp.Client.TFDCustomCommand.Open

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomCommand

Delphi

procedure Open(ABlocked: Boolean = False);

C++

void __fastcall Open(bool ABlocked = false);

Description

Executes the SQL command, and returns the cursor.

Call the Open method to execute the SQL command and return the cursor. After that, the State is set to csOpen and you can fetch rows from the current cursor using the Fetch method. The Open method raises an exception, if the command does not return the cursors.

See Also