217
■
When calling a user-defined function
Run-time errors:
Error code and message
Meaning
error 96: Incomplete
control struc-
ture (FUNC-
TION...END
FUNCTION)
END
FUNCTION
is missing.
error 97: Cannot use
FUNCTION in
control struc-
ture
The
FUNCTION
…
END
FUNCTION
statement is defined in other block-
structured statements such as
FOR
and
IF
statement blocks.
Error code and message
Meaning
error 68: Mismatch argu-
ment 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 unde-
fined
Calling of a user-defined function pre-
cedes the definition of the user-defined
function.
Error code
Meaning
07h
Insufficient memory space
(You nested
FUNCTION
statements to more than 10 levels.)
0Fh
String length out of the range
(The returned value of
stringlength
exceeds the allowable
range.)
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...