RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.varShortInt Constant

Represents a Variant that holds ShortInt data.

Pascal
varShortInt = $0010;
C++
varShortInt = 0x0010;

To define a Variant to be a varShortInt type, you should use VarAsType to create one. By default, a Variant with an integer value less than the Word type capacity will normally be assigned a varByte 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!