AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.1.21 Swap
General Information
Type Statement
Description Exchanges the value of two variables.
Units N/A
Range N/A
Default
Value
N/A
Data Type N/A
Start Ver-
sion
TBD
Description
Exchanges the value of two variables. The two variables must be both numeric (floating point of
integer) or both strings.
Example
Main
dim A$, B$ as string
A$ = "Hello"
B$ = "Good-bye"
print A$, B$
Swap A$, B$
print A$, B$
End Main
Related Topics
Statement Table(1)
119 Kollmorgenâ„¢ | March 30, 2012