Home > lang > swap 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
SWAP
SWAP Expression A , Expression B

Swap the contents of the two expressions.

The two expressions must be able to act as the left part of an assignment.

This is a faster equivalent of executing the following code:

DIM Temp AS Variant

Temp = ExpressionA
ExpressionA = ExpressionB
ExpressionB = Temp

See also

Assignments, Arithmetic Operators