FireDAC.Comp.Script.TFDGetTextEvent

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TFDGetTextEvent = procedure (AEngine: TFDScript;
const AFileName: String; AMode: TFDScriptTextMode; out AText: TFDTextFile) of object;

C++

typedef void __fastcall (__closure *TFDGetTextEvent)(TFDScript* AEngine, const System::UnicodeString AFileName, TFDScriptTextMode AMode, /* out */ Firedac::Stan::Util::TFDTextFile* &AText);

Description

Occurs when getting a text file.

Write a TFDGetTextEvent event handler to take specific actions when a text file has to be loaded as result of the @ or @@ SQL script commands. The event handler can redirect the SQL script engine to a custom script source.

See Also