FireDAC.Comp.Script.TFDScript.ValidateStep
Delphi
function ValidateStep(AParser: TFDScriptParser): Boolean; overload;
function ValidateStep: Boolean; overload;
C++
bool __fastcall ValidateStep(TFDScriptParser* AParser)/* overload */;
bool __fastcall ValidateStep()/* overload */;
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Comp.Script.pas FireDAC.Comp.Script.hpp |
FireDAC.Comp.Script | TFDScript |
Description
Validates the next command in the SQL script.
Call the ValidateStep method to extract and validate the next command in the SQL script.
The ValidateStep method does not execute an SQL command and does not execute many of the script control commands. This method checks the syntax of the next script control command and executes it, if that is required to continue with the checking.
The ValidateStep method can be used to skip the next command in the GUI applications allowing you to execute ad hoc commands.
Example
FDScript1.Position := Memo1.CaretPos; FDScript1.ValidateStep; Memo1.CaretPos := FDScript1.Position;