RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::- Operator ()

Returns a new System::Variant that has the negative value of this System::Variant.

Pascal
operator -(const rhs: Variant&);
operator -(const rhs: AnsiString&);
operator -(rhs: Integer);
operator -(rhs: double);
operator -;
C++
__fastcall Variant operator -(const Variant& rhs) const;
__fastcall Variant operator -(const AnsiString& rhs) const;
__fastcall Variant operator -(int rhs) const;
__fastcall Variant operator -(double rhs) const;
__fastcall Variant operator -() const;

The unary - operator returns a new System::Variant whose value has the opposite sign from this System::Variant (effectively multiplying the System::Variant's value by –1). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!