Q Parameter error
Sinclair ZX Spectrum
Severity: MinorWhat it means
Either the number of arguments is wrong, or one of them is the wrong type: a string instead of a number, or the other way round. That is report Q in Sinclair's manual.
It comes from FN, the user-defined functions.
Affected Models
- Sinclair ZX Spectrum 16K and 48K
- ZX Spectrum+
- Spectrum 128, +2 and +3 in 48 BASIC
How to Fix It
-
Compare the FN call with its DEF FN line.
DEF FN a(x,y) needs two numbers: FN a(3,4), not FN a(3).
-
Check each argument's type. A string argument needs a $ name in the DEF FN, such as DEF FN s$(t$).