VarSameValue

Check if 2 variants are the same

Declaration

Source position: variants.pp line 101

  function VarSameValue(const A: Variant; const B: Variant) : Boolean;

Description

varSameValue checks whether A and B have the same value. Here empty variants equal empty variants, and null variants equal null variants. For all other cases, the actual values are compared.

Errors

If the variants are of different types and they cannot be converted, an exception will be raised.