RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::+ Operator (Variant&)

Adds a specified value to the System::Variant::Variant.

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

The + System::Variant::+ returns a new System::Variant::Variant that is the sum of this System::Variant::Variant and rhs. 

If the operation is not possible because of an invalid variant type conversion, an ESystem::Variant::VariantError exception is thrown. 

 

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