FireDAC.Comp.Client.TFDCustomCommand.Active

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

property Active: Boolean read GetActive write SetActive default False;

C++

__property bool Active = {read=GetActive, write=SetActive, default=0};

Description

Gets or sets the active status of the command.

Set Active to True to execute the SQL command and return the cursor. After that, the State equals csOpen and you can fetch rows from the current cursor using the Fetch method. Setting Active to True, calls the Open method.

Set Active to False to close the current command cursor. After that, State equals csPrepared. Setting Active to False, calls the Close method. To close all command cursors (if the command returns multiple result sets), use the CloseAll method.

See Also