Argox PA-20 Basic Programming Manual Uživatelský manuál Strana 56

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 143
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 55
PT-Basic Programming Manual Ver. 1.00 55/143
3.11 Keypad commands
CLR_KBD
Purpose
To clear the keypad buffer.
Syntax
CLR_KBD
Example
CLR_KBD
Description
This command will clear keypad buffer.
INKEY$
Purpose
To read one character from the keypad buffer then remove it.
Syntax
Str$ = INKEY$
Example
START:
S$=INKEY$
IF S$<>"" THEN
PRINT ASC(S$)
IF ASC(S$)=27 THEN „ESC key
END
END IF
END IF
GOTO START
Description
Str$ is a string variable to be assigned to character read.
INPUT_LEN
Purpose
To set or get input length when using “INPUT” or INPUT_S"
command.
Syntax
X%= INPUT_LEN
INPUT_LEN=A%
Example
INPUT_LEN=4
PRINT "INPUT STRING:"
A%=INPUT("",S$)
PRINT “Input length:”; INPUT_LEN
Description
A% is an integer variable. When using “INPUT” or
“INPUT_S” command, it can set limit on input length(When
N%=0 indicating not limit).
X% is an integer variable, indicating the input length.
Zobrazit stránku 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 142 143

Komentáře k této Příručce

Žádné komentáře