Developer

IsEqual

Determine if value of cell specified as Value parameter is equal to Self.

function IsEqual(Value: INxCell): Boolean; virtual;

Example:


if NextGrid61.Cell[0, i].IsEqual(NextGrid61.Cell[1, i]) then ShowMessage('Match!');
Every cell use own native type when comparing values. That said TNxFloatCell will compare AsFloat value with AsFloat value of other cell. Other cell may be different type.

function TNxFloatCell.IsEqual(Value: INxCell): Boolean; begin Result := FValue = Value.AsFloat; end;

See also