Skip to content

TFPExprIdentifierDefs.AddStringVariable

Add a string variable to the collection

Declaration

Source position: fpexprpars.pp line 594

public 
function TFPExprIdentifierDefs.AddStringVariable
                                                (const AName: ShortString; 
                                                const AValue: AnsiString)
                                                 : TFPExprIdentifierDef;

Description

The AddStringVariable method creates and adds a new string variable identifier to the collection with the specified name and string value. The variable can then be referenced in expressions to retrieve the text value.