EntityDAC

TCustomEntityDataSet.AddFieldExpression Method

Adds new field expression to the dataset.

Class

TCustomEntityDataSet

Syntax

function AddFieldExpression(const Expression: string; StrictReferences: boolean = False): TFieldExpression; overload;

Parameters
Expression
Defines the field expression in the string format.
StrictReferences
Return Value
Added field expression.

Remarks

The method adds new field expression to the dataset. The expression has to be specified in the string format using rules described in the article. The name of the dataset field being created will be set automatically, according to the specified expression. To explicitly specify the name for the resulting field, the overloaded AddFieldExpression method can be used.

To delete the field expression, TCustomEntityDataSet.DeleteFieldExpression method is used. To clear all dataset field expressions, the TCustomEntityDataSet.ClearFieldExpressions methods is used.

See Also

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