Unit 'Variants' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

VarSameValue

Check if 2 variants are the same.

Declaration

Source position: variants.pp line 108

function VarSameValue(

  const A: Variant;

  const B: Variant

):Boolean;

Arguments

A

  

First variant to compare.

B

  

Second variant to compare.

Function result

True of both variants are equal.

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.


Documentation generated on: Dec 24 2024