UBI EasyCoder 201 IIE Manual de Instruções Página 272

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 332
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 271
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7270
Chapter 2 Program Instructions
VAL
Field of Application
Function returning the numeric representation of a string expression.
Syntax VAL(<sexp>)
<sexp> is the string expression from which the numeric representation
will be returned.
Remarks
VAL is the complementary function for STR$.
VAL ignores space characters from the argument string to determine
the result.
If the rst character in the string expression is anything else but a digit, a plus
sign, or a minus sign, the VAL function returns the value 0.
Example
In this example, the values of the string variables A$ and B$ are read and
assigned to the numeric variables A% and B%:
10 A$="123, MAIN STREET"
20 A%=VAL(A$)
30 B$="PHONE 123456"
40 B%=VAL(B$)
50 PRINT A$
60 PRINT A%
70 PRINT B$
80 PRINT B%
RUN
yields:
123, MAIN STREET
123
PHONE 123456
0
Vista de página 271
1 2 ... 267 268 269 270 271 272 273 274 275 276 277 ... 331 332

Comentários a estes Manuais

Sem comentários