TFPExprIdentifierDefs.AddVariable function
Add a variable to the identifier collection
Declaration
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)
: TFPExprIdentifierDefArguments
AName | The name of the variable |
AResultType | The result type of the variable |
ACallback | The callback for variable evaluation |
AValue | The value of the variable |
Function result
Returns the added variable identifier
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.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
