Data.DBXPlatform.TDBXStringList.Exchange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Exchange(Index1, Index2: Integer); override;

Properties

Type Visibility Source Unit Parent
procedure public System.Classes.pas Data.DBXPlatform TDBXStringList

Description

Swaps the position of two strings in the list.

Data.DBXPlatform.TDBXStringList.Exchange inherits from System.Classes.TStrings.Exchange. All content below this line refers to System.Classes.TStrings.Exchange.

Swaps the position of two strings in the list.

Call Exchange to rearrange the strings in the list. The strings are specified by their index values in the Index1 and Index2 parameters. Indexes are zero-based, so the first string in the list has an index value of 0, the second has an index value of 1, and so on.

If either string has an associated object, Exchange changes the position of the object as well.

See Also