Sign in Join
FPDoc Onlineexperiment

TFPLessThanEqualOperation class

In unit fpExprPars

Internally used class for less-than-or-equal comparison operations

Declaration

pascal
TFPLessThanEqualOperation = class(TFPGreaterThanOperation)

Inheritance

  1. TFPLessThanEqualOperation
  2. TFPGreaterThanOperation
  3. TFPOrderingOperation
  4. TFPBooleanResultOperation
  5. TFPBinaryOperation
  6. TFPExprNode
  7. TObject

Description

The TFPLessThanEqualOperation class implements the less-than-or-equal comparison operation (<=) between two operands of compatible types. It extends TFPOrderingOperation to provide less-than-or-equal-specific comparison logic.

The operation compares two values and returns True if the left operand is less than or equal to 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.

This operation combines both equality and less-than testing, returning True when either condition is satisfied.

See also

Methods

GetNodeValueprotected
AsStringpublicGet string representation of less-than-equal operation

Inherited

From TFPOrderingOperation (1)

Check

From TFPBooleanResultOperation (1)

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.