RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarHlpr.VariantSub2 Function

Subtracts two Variants.

Pascal
function VariantSub2(const V1: Variant; const V2: Variant): Variant;
C++
Variant VariantSub2(const Variant V1, const Variant V2);

VariantSub2 subtracts V1 from V2 and returns a new Variant holding the result.  

The input values must have compatible types; otherwise an EVariantTypeCastError exception will be raised. 

 

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