Extracts and executes a next command from the SQL script.
Call the ExecuteStep to extract and execute a next command from the SQL script.
The extraction will be started from the Position position in the SQL script, when the SQL script is stored in the SQLScript collection. When the SQL script is stored in a file, then extraction will be started from the current position in a file stream.
After execution of a command, the current position will be forwarded to the first symbol after the processed command. When a script is stored in SQLScript, then the Position property will be updated. When a script is stored in a file, then file stream position will be updated.
If script command execution raised an exception, and there TADScriptOptions.IgnoreError is False, then this exception will propagated out of the method.
Before execution the BeforeExecute event handler will be called. And after the execution is finished the AfterExecute event handler will be called. When a subscript call is encountered, then the subscript will be executed by the ExecuteStep command.
function ExecuteStep: Boolean; overload;
ADScript1.Position := Memo1.CaretPos; ADScript1.ExecuteStep; Memo1.CaretPos := ADScript1.Position;
What do you think about this topic? Send feedback!