RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::!= Operator (TDateTime)

Compares the System::Variant::Variant with another value, testing for inequality.

Pascal
operator !=(const rhs: Variant&);
operator !=(const rhs: char*);
operator !=(rhs: Integer);
operator !=(rhs: double);
operator !=(rhs: TDateTime);
C++
__fastcall bool operator !=(const Variant& rhs) const;
__fastcall bool operator !=(const char* rhs) const;
__fastcall bool operator !=(int rhs) const;
__fastcall bool operator !=(double rhs) const;
__fastcall bool operator !=(TDateTime rhs) const;

The != System::Variant::!= returns true if the System::Variant::Variant's value is not the same as the value specified by rhs, false otherwise. If the comparison is not possible because of an invalid variant type conversion, an ESystem::Variant::VariantError exception is thrown. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!