Skip to content

TFPExprIdentifierDefs.AddFloatVariable

Add a float variable to the collection

Declaration

Source position: fpexprpars.pp line 592

public 
function TFPExprIdentifierDefs.AddFloatVariable
                                               (const AName: ShortString; 
                                               AValue: TExprFloat)
                                                : TFPExprIdentifierDef;

Description

The AddFloatVariable method creates and adds a new floating-point variable identifier to the collection with the specified name and float value. The variable can then be referenced in expressions to retrieve the floating-point value.