FireDAC.Comp.Script.TFDScript.Eof

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

property Eof: Boolean read GetEof;

C++

__property bool Eof = {read=GetEof, nodefault};

Description

Returns True if the current position is beyond the last command in the SQL script.

Use the Eof property to check the current position specified by the Position property. If its value is True, then the position is beyond the last command in the current script. If the value is False, then there may be several other commands after the current position.

Example

procedure TForm1.acRunUpdate(Sender: TObject);
begin
  acStep.Enabled := FDScript1.Connection.Connected and not ADScript1.Eof;
end;

See Also