System.Internal.VarHlpr.VariantNeg

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  VariantNeg(const V1: Variant): Variant;

C++

extern DELPHI_PACKAGE System::Variant __fastcall VariantNeg(const System::Variant &V1);

Properties

Type Visibility Source Unit Parent
function public
System.Internal.VarHlpr.pas
System.Internal.VarHlpr.hpp
System.Internal.VarHlpr System.Internal.VarHlpr

Description

Inverts the sign of a Variant.

VariantNeg will invert the sign of V1 from positive to negative and vice-versa.

The input parameter must be convertible to a numerical type; otherwise an EVariantTypeCastError exception will be raised.

See Also