Denso BHT-200QW Especificações Página 235

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 587
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 234
Chapter 14. Statement Reference
227
____________________________________________________________________
Assignment statement
LET
Assigns a value to a given variable.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
Syntax 1:
[LET] stringvariable = stringexpression
Syntax 2:
[LET] numericvariable = numericexpression
Description:
Description:Description:
Description:
LET assigns a value of expression on the right-hand side to a variable on the left-hand
side.
In a numeric data assignment, the assignment statement automatically converts an
integer value to a real value. In the type conversion from a real value to an integer value,
it rounds off the fractional part.
• Keyword LET can be omitted since the equal sign is all that is required to assign a
value.
The data type of a variable and an expression must correspond.
Syntax errors:
Syntax errors:Syntax errors:
Syntax errors:
Error code and message Meaning
error 71: Syntax error
The data type on the right- and left-hand sides
does not correspond. That is, the variable on
the left-hand side is numeric but the expression
on the right-hand side is a string, or vice versa.
Run
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
06h
The operation result is out of the allowable range.
0Fh
String length out of the range
(In a string assignment, the string length of the evaluated result on
the right-hand side exceeds the maximum length of the string
variable on the left-hand side.)
10h
Expression too long or complex
Vista de página 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 586 587

Comentários a estes Manuais

Sem comentários