Metrologic IS1000 Series Guía de usuario Pagina 83

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 198
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 82
Chapter
5
BASIC
Commands
77
Example
ON DAY_OF_WEEK GOSUB 100, 200, 300, 400, 500, 600, 700
...
100
PRINT "Today is Monday."
RETURN
200
PRINT "Today is Tuesday."
RETURN
300
PRINT "Today is Tuesday."
RETURN
See Also
DATE$, TIME$
TIME$
Purpose
To set or to get the current time.
Syntax
TIME$ = X$
Y$ = TIME$
Remarks
TIME$ = X$, to set the current time.
"X$" is a string variable in the form of "hhmmss".
Y$ = TIME$, to get the current time, in the form of "hhmmss".
"Y$" is a string variable to be assigned to the result.
The BASIC Compiler and its Run-time Engines do not check the format and
contents of the string to be assigned to TIME$. The user is obliged to check the
format and contents.
Example
TIME$ = "112500"
CurrentTime$ = TIME$
PRINT CurrentTime$
' set the system time to 11:25:00
' assign the current to CurrentTime$
' CurrentTime$ = "112500"
See Also
DATE$, DAY_OF_WEEK
TIMER
Purpose
To return the number of seconds since the terminal is powered on.
Syntax
A& = TIMER
Vista de pagina 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 197 198

Comentarios a estos manuales

Sin comentarios