350
kk
kk
k Input/Output Commands (I/O)
Getkey
Function: This command returns the code that corresponds to the last key pressed.
Syntax: Getkey_
Description:
1. This command returns the code that corresponds to the last key pressed.
2. A value of zero is returned if no key was pressed previous to executing this com-
mand.
3. This command can be used inside of a loop.
Locate
Function: This command displays alpha-numeric characters at a specific location
on the text screen.
Syntax:
Locate <column number>, <line number>, <value>
Locate <column number>, <line number>, <variable name>
Locate <column number>, <line number>, ”<string>”
[Example] Locate 1, 1, ”AB”_
Parameters:
• line number: number from 1 to 7
• column number: number from 1 to 21
• value: numeric value
• variable name: A to Z
• string: character string
19
-
11 Command Reference