RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSmallIntArray.Assign Method

Copies the Items property of another TSmallIntArray object.

Pascal
procedure Assign(Source: TPersistent); override;
C++
virtual __fastcall Assign(TPersistent * Source);

Call Assign to copy the array from another object. If the Source parameter is a TSmallIntArray object, Assign replaces the Items property with the array from the source array. Otherwise, Assign calls the inherited method which will assign values from any Source object that handles a TSmallIntArray in its AssignTo method.

Note: Assign only changes the list of elements. It does not copy the AutoSize, Capacity, CompareProc, Duplicates, or SortOrder properties. If the AutoSize property is false, be sure that the value of Capacity is at least as big as the Count property of the source array. If the array is sorted, source items will appear in sorted order. If the Duplicates property is not dupAccept, duplicate elements will not be copied from the source array.
 

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