Chapter 14. Statement Reference
216
• If you specify a global variable in
realparameter
when calling a user-defined
function, the user-defined function cannot update the value of the global variable.
This is because all
realparameter
s are passed not by address but by value.
(So called "Call-by-value")
Syntax errors:
■
When programming a user-defined function
NOTE
Before any call to a
FUNCTION
...
END
FUNCTION
, you need to place def-
inition of the
FUNCTION
function or declaration of the
FUNCTION
by the
DECLARE
statement in your source program.
Error code and message
Meaning
error 64: Function
redefinition
You made double definition to a same
function name.
error 71: Syntax error
•
funcname
is an integer function
name, but
generalexpression
is a real type. (If
funcname
is a
real function name and
general-
expression
is an integer type,
then no error occurs.)
•
stringlength
is out of the
range.
•
stringlength
is not an integer
constant.
• The function name is assigned a
value outside the function definition
block.
error 95: Incorrect use
of FUNCTION,
EXIT FUNC-
TION, or END
FUNCTION
• The
EXIT
FUNCTION
statement is
specified outside the function defini-
tion block.
• The
END
FUNCTION
statement is
specified outside the function defini-
tion block.
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...