Denso BHT-200QW Dokumentacja Strona 216

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 587
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 215
208
• A block-structured IF statement block has the following advantages over a single-line
IF statement (which is not supported in BHT-BASIC):
- More complex conditions can be tested since an IF statement block can contain more
than one line for describing conditions.
- You can describe as many statements or statement blocks as you want.
- Since it is not necessary to put more than one statement in a line, you can describe
easy-to-read programs according to the logical structure, making correction and
debugging easy.
You can use ENDIF instead of END IF.
Syntax errors:
Syntax errors:Syntax errors:
Syntax errors:
Error code and message Meaning
error 26 :
Too deep nesting.
error 50 : Incorrect use of IF...
THEN...ELSE...END IF
THEN is missing.
error 51 : Incomplete control
structure
END IF is missing.
Example:
Example:Example:
Example:
k$=INKEY$
IF k$<>""THEN
PRINT k$;
END IF
Referen
ReferenReferen
Reference:
ce:ce:
ce:
Statements:
DEF FN ..END DEF, FOR ..NEXT, ONGOSUB, ON ..GOTO,
SELECT ..CASE ..END SELECT, and WHILE ..WEND
Przeglądanie stron 215
1 2 ... 211 212 213 214 215 216 217 218 219 220 221 ... 586 587

Komentarze do niniejszej Instrukcji

Brak uwag