Uninitialized variable (error 48)
12Me21Created:
There is a "hidden" error (not listed in the help menu)
Uninitialized variable
This means that a return value wasn't specified in a function:
DEF EXAMPLE(EX) IF EX==1 THEN RETURN 1 ENDLooks OK, but if EX isn't 1, the function will reach END and have nothing to return. IT should be changed to
DEF EXAMPLE(EX) IF EX==1 THEN RETURN 1 ELSE RETURN 0 ENDAnd also:
DEF EXAMPLE EX OUT EX2 IF EX==1 THEN EX2 = 1 ENDshould be
DEF EXAMPLE EX OUT EX2 IF EX==1 THEN EX2 = 1 ELSE EX2 = 0 ENDThis error can also happen when you make a typo like:
VARIABLE=
I had to search for this, as this error is not described in the error table of the build-in manual. Thanks a lot!