Sign in Join
FPDoc Onlineexperiment

TFPUnequalOperation class

In unit fpExprPars

Internally used class for inequality comparison operations

Declaration

pascal
TFPUnequalOperation = class(TFPEqualOperation)

Inheritance

  1. TFPUnequalOperation
  2. TFPEqualOperation
  3. TFPBooleanResultOperation
  4. TFPBinaryOperation
  5. TFPExprNode
  6. TObject

Description

The TFPUnequalOperation class implements the inequality comparison operation (<>) between two operands of compatible types. It extends TFPBooleanResultOperation to provide inequality-specific comparison logic.

The operation compares two values and returns True if they are not equal, False if they are equal. It handles different data types appropriately, using numeric comparison for numbers, string comparison for strings, and boolean comparison for boolean values.

Type conversion is performed when necessary to compare values of different but compatible types, ensuring that the inequality test works across different numeric types.

See also

Methods

GetNodeValueprotected
AsStringpublicGet string representation of inequality operation

Inherited

From TFPBooleanResultOperation (2)

Check NodeType

From TFPBinaryOperation (8)

CheckSameNodeTypes Create Destroy HasAggregate InitAggregate left Right UpdateAggregate

From TFPExprNode (3)

CheckNodeType IsAggregate NodeValue

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.