Interchanges object members at two specified index locations in a collection.
object expression.Swap (Index1, Index2)
object expression Required. An object expression that evaluates to an object in the Applies To list.
index1 Required Long. First of two indexes to swap.
index2 Required Long. Second of two indexes to swap.
The following example swaps the position of the Bot in the 3rd index position with the Bot in the 4th index position of a Group.
Group.Swap 3, 4