RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseArray.Insert Method

Inserts an element into the array and assigns it a value.

Pascal
procedure Insert(Index: Integer; var Value); virtual;
C++
virtual __fastcall Insert(int Index,  Value);

Call InsertAt to add an element to the array at the position specified by Index and assign it the value of Value. If Index is 0, the element is inserted at the beginning of the array. If Index is 1, the element is put in the second position of the array, and so on.

Note: Insert does not check the SortOrder property. If the array is sorted, be sure to insert the element in the proper sort order position.
 

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