
325
■ When calling a user-defined function
Run-time errors:
Reference:
Statements: DECLARE
Example:
File 1 File 2
DECLARE SUB add(x,y) SUB add(X,Y)
A=1:B=2 PRINT X+Y
PRINT "TEST" END SUB
CALL add(A,B)
.
.
.
Error code and message Meaning
error 68: Mismatch
argument type
or number
• The number of the real parameters is
not equal to that of the dummy
parameters.
•
dummyparameter was an integer
variable in defining a function, but
realparameter is a real type in
calling the function. (If
dummypa-
rameter
was a real variable in
defining a function and
realpa-
rameter
is an integer type, then no
error occurs.)
error 69: Function
undefined
Calling of a user-defined function pre-
cedes the definition of the user-created
function.
Error code Meaning
07h
Insufficient memory space
(You nested
SUB statements to more than 10 levels.)
0Fh
String length out of the range
(The returned value of the string length exceeds the allowable
range.)
TEST
3
Comentarios a estos manuales