Skip to main content

TdxFastList.InsertRange(Integer,TdxFastList) Method

Inserts the source ordered pointer list’s content into the current list at the specified position.

Declaration

procedure InsertRange(AIndex: Integer; AList: TdxFastList);

Parameters

Name Type
AIndex Integer
AList TdxFastList

Remarks

Call this procedure and pass the insert position (index) within the current list and the source ordered pointer list as the AIndex and AList parameters, respectively. The InsertRange procedure:

  • Increments the Count property value by the number of inserted pointers.

  • Shifts all pointers that follow the insert position in the original list by the same number of positions towards the list end.

  • Expands the list’s capacity if the number of stored pointers has reached the maximum list size prior to the procedure call.

The “List index out of bounds” exception occurs if the AIndex parameter value is:

  • Equal to or greater than the Count property value.

  • Negative.

Note

Call the Insert procedure instead if you need to insert only a single pointer into the list.

See Also