UniDAC

TDAConditions.Add Method

Adds a condition to the WHERE clause of the query.

Class

TDAConditions

Syntax

function Add(const Value: string; Enabled: Boolean = True): TDACondition; overload;

Parameters
Value
The value of the condition
Enabled
Indicates that the condition is enabled

Remarks

If you want then to access the condition, you should use Add and its name in the Name parameter.

The given example code will return the following SQL:

SELECT * FROM EMP
WHERE (JOB="MANAGER")
and
(SAL<2500)

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback