RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSmallIntArray.Create Constructor

Creates an instance of TSmallIntArray.

Pascal
constructor Create(itemcount: Integer; dummy: Integer); override;
C++
virtual __fastcall TSmallIntArray(int itemcount, int dummy);

Call Create to create and initialize a TSmallIntArray object. Create sets the Capacity property to Itemcount and ignores the iSize parameter. 

Create also initializes the following properties: 

ItemSize is set to 2 (the size of a small integer). 

CompareProc is initialized to a function that returns the difference between two 16-bit integers. 

AutoSize is set to true. 

Count is set to 0. 

 

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