SWAP Statement Details Syntax SWAP variable1,variable2 Any type of variable can be swapped (integer, long, single precision, double precision, string, or record). However, the two variables must be exactly the same type or an error message appears ("Type mismatch"). For example, trying to swap an integer with a single-precision value produces a "Type mismatch" error.