?UNDEF'D FUNCTION ERROR
Commodore Commodore 64
Severity: MinorWhat it means
As Commodore's manual puts it, a user defined function was referenced, but it has never been defined using the DEF FN statement.
Affected Models
- Commodore 64
- Commodore 64C
- Commodore 128 in C64 mode
How to Fix It
-
Make sure the DEF FN line runs before the first line that uses the function.
For example, 10 DEF FN A(X)=X*2 has to run before PRINT FN A(5).
-
Check the function name. FN B gives this error when only FN A was defined.