Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxCell6 IsEqual

IsEqual

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

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

Example

pas
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.

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

Sign in