EasyManua.ls Logo

Husky Hunter - Page 308

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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