Skip to content

TFPNegateOperation.Check

Validate the negation operation for correctness

Declaration

Source position: fpexprpars.pp line 464

public 
procedure TFPNegateOperation.Check;  override;

Description

The Check method validates that the operand of the negation operation is a numeric type suitable for negation. It ensures type compatibility and prevents attempts to negate non-numeric values.

The validation process checks that the operand is of a numeric type (integer, float, or currency) that supports negation operations.