method Exchange(Index1: Number, Index2: Number)
Available for StringList Objects. Swaps the positions of items at Index1 and Index2 positions in the list.
Exchange method syntax has these named arguments:
Parameter |
Description |
|---|---|
Index1, Index2 |
Required. The Index numbers of the list items to be exchanged. |
For example:
strList.Exchange(0, 2)
will move the third item in the list to the first position, and move the first item in the list to the third position.