Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPExprIdentifierDefs.AddFunction

Add a function to the collection

Declaration

Source position: fpexprpars.pp line 596

public function TFPExprIdentifierDefs.AddFunction(

  const AName: ShortString;

  const AResultType: AnsiChar;

  const AParamTypes: AnsiString;

  ACallBack: TFPExprFunctionCallBack

):TFPExprIdentifierDef;

function TFPExprIdentifierDefs.AddFunction(

  const AName: ShortString;

  const AResultType: AnsiChar;

  const AParamTypes: AnsiString;

  ACallBack: TFPExprFunctionEvent

):TFPExprIdentifierDef;

function TFPExprIdentifierDefs.AddFunction(

  const AName: ShortString;

  const AResultType: AnsiChar;

  const AParamTypes: AnsiString;

  ANodeClass: TFPExprFunctionClass

):TFPExprIdentifierDef;

Arguments

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

Function result

Returns the added function identifier

Arguments

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

Arguments

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

Description

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.


Documentation generated on: Dec 15 2025