MyDAC

TMacro.Active Property

Used to determine if the macro should be expanded.

Class

TMacro

Syntax

property Active: boolean default True;

Remarks

When set to True, the macro will be expanded, otherwise macro definition is replaced by null string. You can use the Active property to modify the SQL property.

The default value is True.

Example

MyQuery.SQL.Text := 'SELECT * FROM Dept WHERE DeptNo > 20 &Cond1';
MyQuery.Macros[0].Value := 'and DName is NULL';
MyQuery.Macros[0].Active:= False; 
© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback