MyDAC

TDAConditions.Add Method

Adds a condition to the WHERE clause of the query.

Class

TDAConditions

Syntax

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

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

Remarks

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