Check if 2 variants are the same.
Source position: variants.pp line 108
function VarSameValue( |
const A: Variant; |
const B: Variant |
):Boolean; |
A |
|
First variant to compare. |
B |
|
Second variant to compare. |
True of both variants are equal.
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.
If the variants are of different types and they cannot be converted, an exception will be raised.