System.Variant.operator ==

From RAD Studio API Documentation
Jump to: navigation, search

C++

bool operator ==(const Variant& rhs) const;
bool operator ==(const char* rhs) const {
bool operator ==(int rhs) const
bool operator ==(const AnsiString& rhs) const
bool operator ==(double rhs) const
bool operator ==(TDateTime rhs) const

Properties

Type Visibility Source Unit Parent
function public sysvari.h System Variant


Description

Compares the Variant with another value, testing for equality.

The operator == returns True if the Variant's value is the same as the value specified by rhs, False otherwise. If the comparison is not possible because of an invalid variant type conversion, an EVariantError exception is thrown.