Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TCaseOperation.AsString

Get string representation of case operation

Declaration

Source position: fpexprpars.pp line 293

public function TCaseOperation.AsString: AnsiString; override;

Function result

Returns string representation of the case

Description

The AsString method returns a human-readable string representation of the case operation, showing the condition and all case branches in a format that can be used for debugging or display purposes.

The string format typically follows the pattern:

CASE condition
  WHEN value1 THEN result1
  WHEN value2 THEN result2
ELSE
  default_result
END.

making the case logic clearly visible for analysis and debugging.


Documentation generated on: Dec 15 2025