Metrologic IS1000 Series Guía de usuario Pagina 31

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 198
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 30
Chapter
5
BASIC
Commands
25
Example
GOSUB DoIt
...
GOSUB Done
...
SUB DoIt( )
PRINT "Now I've done it!"
END SUB
...
Done:
PRINT "Now I've done it!"
RETURN
GOTO
Purpose
To branch out unconditionally to a specified line number of line label from the
normal program sequence.
Syntax
GOTO LineNumber|LineLabel
Remarks
"LineNumber" is the integer number in front of a program line.
"LineLabel" is the string label of a program line.
Example
Loop:
GOTO Loop
INT
Purpose
To return the largest integer that is less than or equal to the given numeric
expression.
Syntax
A% = INT(N)
Remarks
"A%" is an integer variable to be assigned to the result.
"N" is a numeric expression.
Example
A% = INT(-2.86)
B% = INT(2.86)
' A% = -3
' B% = 2
REM
Purpose
To insert explanatory remarks in a program.
Vista de pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 197 198

Comentarios a estos manuales

Sin comentarios