TFPExprIdentifierDefs.AddFunction¶
Add a function to the collection
Declaration¶
Source position: fpexprpars.pp line 596
public
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;
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.