Specifications
16
• Comment lines starting with a single quotation mark (') and those with a
REM should have
the following description rules each.
A single quotation mark (') can be put starting from the 1st or the following columns, or
immediately following any other statement.
A
REM should be put starting from the 2nd column or the following columns. To put a
REM following any other statement, a colon (:) should precede the REM.
• It is necessary to end the
IF statement with an END IF or ENDIF, since the IF state-
ment will be treated as a block-structured statement.
• The default number of characters for a non-array string variable is 40; that for an array
string variable is 20.
Specifying the
DIM or DEFREG statement allows a single string variable to treat 1
through 255 characters.
NOTE
BHT-BASIC does not support some of the statements and functions used in
Microsoft BASIC or QuickBASIC. For details, refer to Appendix K, “Unsupported
Statements and Functions.”
’Comment
CLS ’Comment
REM Comment
CLS :REM Comment
IF a$ = “Y” OR a$ = “y” THEN
GOTO SUB12
END IF
DIM b$[255]
DIM c$(2,3)[255]
DEFREG d$[255]
DEFREG e$(2,3)[255]