FireDAC.Comp.Script.TFDScriptOptions.MacroExpand

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

property MacroExpand: Boolean read FMacroExpand write FMacroExpand default True;

C++

__property bool MacroExpand = {read=FMacroExpand, write=FMacroExpand, default=1};

Description

Controls the macro substitution for the script engine.

Set MacroExpand to True to enable macro expansion for the script engine. 

The macro substitution variables have the form &name or !name. They can appear in every place in a script, including in script names. The macro variables and their values are listed in the Macros property and can be set from the script using the DEFINE name=value command. 

Also, the script arguments can be referenced using the &index or !index form. There the index is a value index from Arguments

The default value is True

The property can be set from a script using the SET (DEFine | SCAN) (ON | OFF) command.

See Also