RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.varSingle Constant

Represents a Variant that holds byte data.

Pascal
varSingle = $0004;
C++
varSingle = 0x0004;

System

To define a Variant to be a varSingle type, you should use VarAsType to create one. By default, a Variant with a floating point value with less than 4 decimal places will be assigned the varCurrency type. With greater than 4 decimal places, it will be assigned by default the varDouble type.  

Use VarType to determine the variant type. 

 

TVarType 

VarAsType 

VarType

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!