Add a function to the collection
Source position: fpexprpars.pp line 596
public function TFPExprIdentifierDefs.AddFunction( |
const AName: ShortString; |
const AResultType: AnsiChar; |
const AParamTypes: AnsiString; |
ACallBack: TFPExprFunctionCallBack |
):TFPExprIdentifierDef; |
const AName: ShortString; |
const AResultType: AnsiChar; |
const AParamTypes: AnsiString; |
ACallBack: TFPExprFunctionEvent |
):TFPExprIdentifierDef; |
const AName: ShortString; |
const AResultType: AnsiChar; |
const AParamTypes: AnsiString; |
ANodeClass: TFPExprFunctionClass |
AName |
|
The name of the function |
AResultType |
|
The result type of the function |
AParamTypes |
|
The parameter types of the function |
ACallBack |
|
The callback for function evaluation |
Returns the added function identifier
AName |
|
The name of the function |
AResultType |
|
The result type of the function |
AParamTypes |
|
The parameter types of the function |
ACallBack |
|
The callback for function evaluation |
AName |
|
The name of the function |
AResultType |
|
The result type of the function |
AParamTypes |
|
The parameter types of the function |
ANodeClass |
|
The node class for the function |
The AddFunction method creates and adds a new function identifier to the collection with the specified name, parameter types, result type, and implementation details. The function becomes available for use in expressions parsed by this identifier collection.