BASIC FUNCTIONS
SECTION 5.20
SWAP
5,20,13 Function SWAP exchanges the values of two variables.
Syntax SWAP variable 1, variable 2
Example SWAP A, B this will put the value of variable A
into B and the value of B into A,
Remark
VER.V09F
SWAP A$,B$ 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.
PAGE 5 - 139