Add function to built-in collection
Source position: fpexprpars.pp line 824
public function TExprBuiltInManager.AddFunction( |
const ACategory: TBuiltInCategory; |
const AName: ShortString; |
const AResultType: AnsiChar; |
const AParamTypes: AnsiString; |
ACallBack: TFPExprFunctionCallBack |
):TFPBuiltInExprIdentifierDef; |
const ACategory: TBuiltInCategory; |
const AName: ShortString; |
const AResultType: AnsiChar; |
const AParamTypes: AnsiString; |
ACallBack: TFPExprFunctionEvent |
):TFPBuiltInExprIdentifierDef; |
const ACategory: TBuiltInCategory; |
const AName: ShortString; |
const AResultType: AnsiChar; |
const AParamTypes: AnsiString; |
ANodeClass: TFPExprFunctionClass |
ACategory |
|
Category for the function |
AName |
|
Name of the function |
AResultType |
|
Result type for the function |
AParamTypes |
|
Parameter types for the function |
ACallBack |
|
Callback function for the built-in |
Returns the added function identifier
ACategory |
|
Category for the function |
AName |
|
Name of the function |
AResultType |
|
Result type for the function |
AParamTypes |
|
Parameter types for the function |
ACallBack |
|
Callback function for the built-in |
ACategory |
|
Category for the function |
AName |
|
Name of the function |
AResultType |
|
Result type for the function |
AParamTypes |
|
Parameter types for the function |
ANodeClass |
|
Node class for the function |
The AddFunction method adds a custom function to the built-in collection, making it available for use in expressions. The function must provide appropriate callback or event handling mechanisms for evaluation.
Built-in functions extend the expression language with domain-specific functionality, allowing applications to provide mathematical, string, date/time, or business-logic functions that can be called from within expressions.