Skip to content

TFPGreaterThanOperation

Internally used class for greater-than comparison operations

Declaration

Source position: fpexprpars.pp line 232

type

  TFPGreaterThanOperation = class(TFPOrderingOperation)
  public
    function AsString : AnsiString;
  end;

Description

The TFPGreaterThanOperation class implements the greater-than comparison operation (>) between two operands of compatible types. It extends TFPOrderingOperation to provide greater-than-specific comparison logic.

The operation compares two values and returns True if the left operand is greater than the right operand, False otherwise. It handles different data types appropriately, using numeric comparison for numbers, lexicographic comparison for strings, and chronological comparison for date/time values.

Type conversion is performed when necessary to compare values of different but compatible types, ensuring proper ordering across numeric types.

This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.

Methods

Member Visibility Description
AsString public Get string representation of greater-than operation
See all Methods

See also

Name Description
TFPExprNode Class for representing nodes in expression trees