Argox PA-20 Basic Programming Manual Manual do Utilizador Página 57

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 143
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 56
PT-Basic Programming Manual Ver. 1.00 56/143
INPUT
Purpose
To retrieve input from the keypad and store it in a variable.
Syntax
A%=INPUT(S$ , variable)
Example
PRINT "INPUT STRING:"
Result%=INPUT("",String$) „Input a string variable
PRINT "INPUT NUMBER:"
Result %=INPUT("123",Number%) „Input a numeric variable
Description
A% is an integer variable to be assigned to the result.
A%
Meaning
0
Press the ENT
key and has not
input any item.
1
Inputs correctly.
255
Press the ESC
key.
-1
Input error.
S$ is a string variable, indicating the input default value.
variable is numeric or string variable that will receive the input
data. The data entered must match the data type of the variable.
When the input task is properly ended with the ENTER key being
pressed, the data string will be stored in a variable. Otherwise,
press the ESC key to abort the task.
INPUT_S
Vista de página 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 142 143

Comentários a estes Manuais

Sem comentários