RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseArray.InsertAt Method

Adds an element to the array at the position specified by Index.

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

InsertAt does the same thing as the Insert method. For most purposes, use the Insert method. 

Descendants of TBaseArray can override the Insert method to raise an exception when an attempt is made to insert an element in a sorted array. InsertAt always succeeds as long as the value of Index is appropriate. InsertAt is intended for internal use when the value of Index is known to be appropriate. 

 

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