RAD Studio VCL Reference
|
Represents the number of elements in the DynamicArray.
property Length: Integer;
__property int Length;
Use the Length property to set or get the length of the dynamic array. The following code sets the length of a DynamicArray to 10.
DynamicArray<int> arrayOfInt;
arrayOfInt.Length = 10; cout << "ArrayLength: " << arrayOfInt.Length << endl;
SetLength(arrayOfInt, 10);
To free a dynamic array, simply set its Length to 0:
arrayOfInt.Length = 0;
High
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|