Futurebasic/Language/Reference/swap
SWAP
editSyntax
editSWAP variable1, variable2
Description
editSWAP
exchanges the contents of the two indicated variables. Both variables must be of the same type.
Example
editvarOne% = 1200 varTwo% = 999 PRINT varOne%, varTwo% SWAP varOne%, varTwo% PRINT varOne%, varTwo% program output: 1200 999 999 1200
See Also
editLET;
Appendix C:Data Types and Data Representation