Add a variable to the identifier collection
Source position: fpexprpars.pp line 587
public function TFPExprIdentifierDefs.AddVariable( |
const AName: ShortString; |
AResultType: TResultType; |
ACallback: TFPExprVariableCallBack |
):TFPExprIdentifierDef; |
const AName: ShortString; |
AResultType: TResultType; |
ACallback: TFPExprVariableEvent |
):TFPExprIdentifierDef; |
const AName: ShortString; |
AResultType: TResultType; |
const AValue: AnsiString |
AName |
|
The name of the variable |
AResultType |
|
The result type of the variable |
ACallback |
|
The callback for variable evaluation |
Returns the added variable identifier
AName |
|
The name of the variable |
AResultType |
|
The result type of the variable |
ACallback |
|
The callback for variable evaluation |
AName |
|
The name of the variable |
AResultType |
|
The result type of the variable |
AValue |
|
The value of the variable |
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.