Sign in Join
FPDoc Onlineexperiment

TFPExprIdentifierDefs.AddFunction function

Member of TFPExprIdentifierDefspublicIn unit fpExprPars

Add a function to the collection

Declaration

pascal
function AddFunction(const AName: ShortString; 
 const AResultType: AnsiChar; 
 const AParamTypes: AnsiString; 
 ACallBack: TFPExprFunctionCallBack)
: TFPExprIdentifierDef
function AddFunction(const AName: ShortString; 
 const AResultType: AnsiChar; 
 const AParamTypes: AnsiString; 
 ACallBack: TFPExprFunctionEvent)
: TFPExprIdentifierDef
function 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

ANodeClass

The node class for the function

Function result

Returns the added function identifier

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.