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

Returns the remainder from dividing the System::Variant::Variant's value by a specified value.

Pascal
operator %(const rhs: Variant&);
operator %(const rhs: AnsiString&);
operator %(rhs: Integer);
operator %(rhs: double);
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;

The System::Variant::% returns a new System::Variant::Variant that is the modulus 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!