RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarUtils.VarNeg Variable

VarNeg is a function type variable that specifies the function that inverts the sign of a variant.

Pascal
VarNeg: function(const Source: TVarData; var Dest: TVarData): HRESULT;
C++
function(const Source: TVarData; var Dest: TVarData): HRESULT VarNeg;

Use VarNeg to specify the function that inverts the sign of the variant given through the Source parameter. The result is stored in the Dest parameter.  

The function specified through VarNot returns a value of type HRESULT. For a list of possible return values, see the VAR_ constants in the VarUtils unit. 

 

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