FireDAC.Comp.Script.TFDScript.Position

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 Position: TPoint read FPosition write FPosition;

C++

__property System::Types::TPoint Position = {read=FPosition, write=FPosition};

Description

Controls the current position of the SQL script.

Use the Position property to get / set the current position of the script. A first line corresponds to Position.Y = 0 and a first character in the line corresponds to Position.X = 0.

The property value is only used for the ValidateStep and ExecuteStep methods, if a script is contained in the SQLScripts collection. The next command extraction and execution start from the specified position. After the command is extracted and executed, Position is updated to the new value.

If there are no more commands after the specified Position, then the Eof property returns True, otherwise False.

See Also