[Overview][Types][Classes][Index] Reference for unit 'ObjectLists' (#lazutils)

TObjectArray.Exchange

Swaps the item/object associations at the specified positions in List.

Declaration

Source position: objectlists.pas line 71

public procedure TObjectArray.Exchange(

  Index1: Integer;

  Index2: Integer

);

Arguments

Index1

  

Ordinal position for the first item/object association.

Index2

  

Ordinal position for the second item/object association.

Description

Exchange is a procedure used to swap the item/object associations in the List at the ordinal positions specified in Index1 and Index2.

Use Move to change the location for an item/object association, and reorder the List as needed.

See also

TObjectArray.List

  

Provides access to the list which implements the storage for the item/object associations in the class instance.

TObjectArray.Move

  

Relocates the association stored at the position in CurIndex to the position in NewIndex.

T2Pointer

  

Record type with pointers to members in the association.


Version 4.0 Generated 2025-05-03 Home