TSubstringListInvariant.Move Method

procedure Move(const CurIndex, NewIndex: Integer);

Moves item CurIndex to NewIndex, the items between shifting by one.

#NameDescription
1CurIndex

The item's index, 0..Count - 1.

2NewIndex

Its index afterwards, 0..Count - 1.

Result: stored in self (calling object)

Remarks:

A sorted list raises EStringListError, before anything changes.