SWAP exchanges the values of two variables.
SWAP variable 1, variable 2
this will put the value of variable A into B and the value of B into A.
this will put the contents of A$ into B$ and the contents of B$ into A$.
Any type of variables may be swapped (single precision, double precision or string), but the two variables must be of the same type or a Type Mismatch error will occur.