TFPExprIdentifierDefs.AddVariable¶
Add a variable to the identifier collection
Declaration¶
Source position: fpexprpars.pp line 587
public
function AddVariable(const AName: ShortString;
AResultType: TResultType;
ACallback: TFPExprVariableCallBack)
: TFPExprIdentifierDef;
function AddVariable(const AName: ShortString;
AResultType: TResultType;
ACallback: TFPExprVariableEvent)
: TFPExprIdentifierDef;
function AddVariable(const AName: ShortString;
AResultType: TResultType; const AValue: AnsiString)
: TFPExprIdentifierDef;
Description¶
The AddVariable method creates and adds a new variable identifier to the collection with the specified name and value. The variable can then be referenced in expressions by its name to retrieve the stored value.