
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.
’Comment
CLS ’Comment
REM Comment
CLS :REM Comment
• It is necessary to end the IF statement with an END IF or END IF, since the IF
statement will be treated as a block-structured statement.
IF a$="Y"OR a$="y"THEN
GOTO SUB12
END IF
• 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.
DIM b$[255]
DIM c$(2,3)[255]
DEFREG d$[255]
DEFREG e$(2,3)[255]
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.”
Comentarios a estos manuales