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

TObjectArray.Move

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

Declaration

Source position: objectlists.pas line 77

public procedure TObjectArray.Move(

  CurIndex: Integer;

  NewIndex: Integer

);

Arguments

CurIndex

  

Ordinal position where the association is currently stored

NewIndex

  

Ordinal position where the association is moved.

Description

Move is a procedure used to relocate the association stored at the position in CurIndex to the position in NewIndex. No actions are performed in the method when CurIndex and Index contain the same value.

Move gets the T2Pointer stored at the position in CurIndex from the List. Move call the Move routine in the System.pp unit to relocate any associations stored between the positions in CurIndex and NewIndex. The relocated associations are moved towards the end of List when CurIndex is greater than NewIndex.

The T2Pointer is reassigned to the position in NewIndex.

See also

TObjectArray.List

  

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

T2Pointer

  

Record type with pointers to members in the association.


Version 4.0 Generated 2025-05-03 Home