statement/GET statement/GET NAME GET -- Gets data from the keyboard ABBREVIATION g <shift> E SYNOPSIS GET <variable> FUNCTION The GET statement is a way to get data from the keyboard one character at a time. When the GET is executed, the character that was typed is received. If no character was typed, then a null (empty) character is returned, and the program continues without waiting for a key. There is no need to press the <return> key, and in fact the <return> key can be received with a GET. The word GET is followed by a variable name, usually a string variable. If a numeric ware used and any key other than a number was hit, the program would stop with an error message. The GET statement may also be put into a loop, checking for an empty result, which waits for a key to be struck to continue. The GETKEY statement could also be used in this case. INPUTS <variable> - acquired data will be stored in this variable RESULT Data acquired from the keyboard is stored in the target variable (<variable>). EXAMPLES 10 GET A$:IF A$ <> "A" THEN 10 This line waits for the "A" key to be pressed to continue. NOTES This command can only be executed within a program. BUGS None SEE ALSO GETKEY INPUT