Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxFastList.Exchange(Integer,Integer) Method

Exchanges positions of the two specified pointers within the ordered pointer list.

#Declaration

Delphi
procedure Exchange(AIndex1: Integer; AIndex2: Integer);

#Parameters

Name Type
AIndex1 Integer
AIndex2 Integer

#Remarks

Call this procedure and pass two indexes as the AIndex1 and AIndex2 parameters to swap positions of the two corresponding pointers within the ordered pointer list. The “List index out of bounds” exception occurs if either of the specified indexes is:

  • Equal to or greater than the Count property value.

  • Negative.

See Also