84
6.3.4 Function Operators
The following two types of functions are available in BHT-BASIC, both of which work as func-
tion operators:
■
Built-in Functions
Already built in BHT-BASIC, e.g.,
ABS
and
INT
.
■
User-defined Functions
Defined by using
DEF
FN
(in single-line form),
DEF
FN
...
END
DEF
(in block form),
SUB
...
END
SUB
, or
FUNCTION
...
END
FUNCTION
statement.
6.3.5 String Operators
A character string operator may concatenate or compare character strings.
Listed below are the types of character string operators available.
■
Concatenation of Character Strings
The process of combining character strings is called concatenation and is executed
with the plus sign (+). The example below concatenates the character strings,
a$
and
b$
.
a$="Work1" : b$ = "dat"
PRINT a$+"."+b$
Operations
Character String Operators
Examples
Concatenation
+
(Plus sign)
a$+"."+b$
Comparison
=
(Equal)
a$=b$
<>, ><
(Not equal)
a$<>b$, a$><b$
>, <, =<, =>, <=, >=
(Greater or less)
a$>b$, a$=>b$
Work1.dat
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...