SWAPStatementWindows/Unix

An assignment statement that exchanges the values of 2 variables.

Syntax: SWAP variable1, variable2
SWAP A$, B$

Details:
Variable1 and variable2 should be of the same type, but Rapid-Q won't complain. Also, do not swap variants using the SWAP function if their types do not match.