System.Variants.VarSameValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE bool __fastcall VarSameValue(const System::Variant &A, const System::Variant &B);

Properties

Type Visibility Source Unit Parent
function public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

Indicates whether two Variants have equivalent values.

VarSameValue returns true when A has the same value as B, false if the two values are not equivalent.

If A and B can't be compared, VarSameValue raises an exception.

See Also