P FN without DEF FN

Sinclair ZX Spectrum

Severity: Minor

What it means

Report P comes from a user-defined function: FN was used, and no DEF FN for that function was found.

Affected Models

  • Sinclair ZX Spectrum 16K and 48K
  • ZX Spectrum+
  • Spectrum 128, +2 and +3 in 48 BASIC

How to Fix It

  1. Add a DEF FN line for the function, for example DEF FN a(x)=x*2 for FN a(5).

  2. Check the letter. FN b gives this report when only FN a is defined.