GLBasic User Manual

Main sections

SWAP

SWAP variable1, variable2



Swaps (exchanges) the contents of 2 variables. The data types must be interchangeably.


LOCAL str$, num%

str$ = "7"
num% = 9
SWAP str$, num

See also...