RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.varSmallint Constant

Represents a Variant that holds Smallint data.

Pascal
varSmallint = $0002;
C++
varSmallint = 0x0002;

To define a Variant to be a varSmallint type, you should use VarAsType to create one. By default, a Variant with an integer value less than the Byte type capacity, but less than the LongWord type capacity will normally be assigned a varWord type.  

Use VarType to determine the variant type. 

 

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