
iv
■
Notational Conventions Used in This Book
Several notational conventions are used in this book for the sake of clarity.
1. Reserved words are printed in UPPERCASE. These are BHT-BASIC’s keywords. You
should not use them as label names or variable names.
Example:
CHAIN
,
GOSUB
, and
ABS
2. Parameters or arguments which should be specified in the statements or functions are
expressed in italics.
Example:
characode
and
onduration
3. Items enclosed in square brackets [ ] are optional, which can be omitted.
Example:
[commonvariable]
4. Items enclosed in braces { } and separated by vertical bars | represent alternative items.
You should choose either item.
Example:
CURSOR {ON|OFF}
5. An ellipsis . . . indicates that you can code the previous item described in one line two or
more times in succession.
Example:
READ variable[,variable...]
6. Hexadecimal values are followed by h. In many cases, hexadecimal values are
enclosed with parentheses and preceded by decimal values.
Example:
65
(41h)
and
255
(FFh)
In program description, hexadecimal values are preceded by &H.
Example:
&H41
and
&HFF
7. Programs make no distinction between uppercase and lowercase letters, except for
character string data.
The uppercase-lowercase distinction used in this manual is intended to increase the
legibility of the statements. For example, reserved words are expressed in uppercase;
label names and variable names in lowercase. In practical programming, it is not nec-
essary to observe the distinction rules used in this manual.
The examples below are regarded as the same.
Example 1:
&HFFFF
,
&hffff
, and
&hFFFF
Example 2:
A
AND
B
,
a
and
b
, and
a
AND
b
Example 3:
STR$(12)
,
Print Str$(12)
, and
print str$(12)
Содержание BHT-BASIC 100 SERIES
Страница 1: ......
Страница 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Страница 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Страница 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Страница 192: ...Chapter 14 Statement Reference 184 Example OPEN master Dat AS 1 FIELD 1 20 AS bar 10 AS ky CLFILE 1 CLOSE 1...
Страница 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...
Страница 349: ...341 Run time errors Error code Meaning 05h Parameter out of the range checktype is out of the range...
Страница 383: ...375 Run time errors Reference Error code Meaning 05h Parameter out of the range Functions LEFT LEN and RIGHT...