SWAP statement

Purpose: Exchanges the values of two variables.


 Syntax:

 SWAP Variable1, Variable2

 Parameters:

  • Variable1 Variable to swap with Variable2.
  • Variable2 Variable to swap with Variable1.
  • Variable1 and Variable2 must be variables of the same type.

Remarks:

BCX Console Sample Programs using SWAP function.

S97.bas   S107.bas