Contents  Index  
──────────────────────────────────────────────────────────────────────────────
Exchanges the values of two variables.

SWAP variable1, variable2variable1 and variable2    Two variables of the same data type.

Example:
    a% = 1: b% = 2
    PRINT "Before: "; a%, b%
    SWAP a%, b%
    PRINT "After: "; a%, b%
──────────────────────────────────────────────────────────────────────────────
 © Copyright Microsoft Corporation, 1987-1992. All rights reserved.
   Converted from qbasic.hlp with DosHelp/HelpConvert