13, TYPE MISMATCH
Commodore Amiga
Severity: MinorWhat it means
Amiga BASIC error 13.
Commodore's manual: a string variable name is assigned a numeric value or vice versa, or a function that expects a numeric argument is given a string argument or vice versa.
SWAP with a single and a double precision value also gives it.
Affected Models
- Amiga computers with Amiga BASIC, written by Microsoft for Commodore
How to Fix It
-
Check the names: a string variable ends with a dollar sign.
-
Use VAL to turn text into a number, and STR$ to turn a number into text.
-
SWAP: use two variables of the same type.