Skip to content

TFPConstExpression.CreateString

Create constant expression with string value

Declaration

Source position: fpexprpars.pp line 476

public 
constructor TFPConstExpression.CreateString(const AValue: AnsiString);

Description

The TFPConstExpression constructor creates a constant expression that holds a string literal value. The string value is stored internally and will be returned whenever the expression is evaluated.

String constants are used for literal text values in expressions and can be used in string operations, comparisons, and function parameters that expect string arguments.