TDAEEFunctionList
Overview
The TDAEEFunctionList class presents a collection of TDAEEFunction instances in a scripting feature of the Data Abstract.
It is part of the implementation of the Business Rules Scripting and is used (via the TDABusinessRuleScript class) by the TDADataset class. The TDAExpressionEvaluator class uses the TDAEEFunctionList class to hold known functions. The TDAStdExpressionEvaluator class fills the TDAExpressionEvaluator with a predefined function set.
You can use this class to customize a scripting engine by
extending the build-in
function set.
For more information, please refer to the following usage examples: TDAStdExpressionEvaluator Class and TDAExpressionEvaluator Class.
Location
- Unit: uDAExpressionEvaluator.pas
constructor Create
Creates a new instance.
constructor Create
Add
Creates a new instance of the TDAEEFunction class with the given aName
and adds it
to the list. Returns the created instance.
function Add(const aName: string): TDAEEFunction
Parameters:
- aName: Function name
Clear
Empties the list.
procedure Clear
Count
Amount of functions in the list.
property Count: Integer read
Delete
Removes the function with the given index from the list.
procedure Delete(I: Integer)
Parameters:
- I: Index to remove
Items
Indexed access to the TDAEEFunction.
property Items[I: Integer]: TDAEEFunction read
Count
Amount of functions in the list.
property Count: Integer read
Items
Indexed access to the TDAEEFunction.
property Items[I: Integer]: TDAEEFunction read
constructor Create
Creates a new instance.
constructor Create
Add
Creates a new instance of the TDAEEFunction class with the given aName
and adds it
to the list. Returns the created instance.
function Add(const aName: string): TDAEEFunction
Parameters:
- aName: Function name
Clear
Empties the list.
procedure Clear
Delete
Removes the function with the given index from the list.
procedure Delete(I: Integer)
Parameters:
- I: Index to remove