RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
VarCmplx.VarComplex Function

Returns the Variant type code for custom Variants that represent complex numbers.

Pascal
function VarComplex: TVarType;
C++
TVarType VarComplex();

Use VarComplex to obtain the variant type code for custom Variants that represent complex numbers. The Variant type codes for custom Variants are dynamically allocated when the application loads the unit that implements them. VarComplex allows the application to identify the Variant type code that is currently used for custom Variants that represent complex numbers. This type code, however, may not match the type code used by another application that uses a different set of custom Variant types. 

Complex Variants are custom Variants that represent complex numbers. The Variant type supports direct manipulation using the addition, subtraction, multiplication, division (but not integer division), and negation operators. They have 5 published properties: Real, Imaginary, Radius, Theta, and FixedTheta. They can be cast to and from integer types, floating point types, string types, TDateTime values, and boolean values. In addition, the VarCmplx unit implements a number of global functions for operating on complex Variants

 

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