Validate the ordering operation for correctness
Source position: fpexprpars.pp line 218
public procedure TFPOrderingOperation.Check; override; |
The Check method validates that both operands of the ordering operation are compatible for comparison and can be meaningfully ordered. It ensures that the operands are of types that support ordering relationships.
The validation process checks that both operands are of comparable types (such as numeric types, strings, or dates) and that the comparison operation can be safely performed. It raises an exception if incompatible types are found.
The Check method extends the base validation from TFPBooleanResultOperation with ordering-specific type checking requirements.