Show: Delphi C++
Display Preferences

System.Variant.operator -

From RAD Studio API Documentation
Jump to: navigation, search

C++

Variant __fastcall operator -(const Variant& rhs) const;
Variant __fastcall operator -(const AnsiString& rhs) const
Variant __fastcall operator -(int rhs) const
Variant __fastcall operator -(double rhs) const
Variant __fastcall operator -() const;

Properties

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

Description

Subtracts a specified value from the Variant.

The – (minus) operator returns a new Variant that is the difference of this Variant and rhs.

If the operation is not possible because of an invalid variant type conversion, an EVariantError exception is thrown.

Personal tools
In Other Languages
Previous Versions
Assistance