Casio Z-1GR Manual do Utilizador Página 21

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 36
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 20
BASIC comparison sheet Commands Page 21
Commands
Vendor
Model
Program flow
Labels
ON ... GOTO/GOSUB
IF ... THEN ...
IF ... THEN ... ELSE ...
Nested IF
Multiline IF ... ENDIF
WHILE ... WEND
REPEAT ... UNTIL
SWITCH ... CASE ... ENDSWITCH
Variable name on NEXT
Function and position of END
Subroutines
Return from procedure
Variable scope
Call and parameter passing
Recursion
Error handling
ON ERROR
Error line and error code
Return from error handler
Disable error handler
More event handling
Debugging
Suspend execution
Syntax for branch targets besides
line numbers
FOR I=1 TO 2 STEP -1
NEXT I
Local procedure definition
besides GOSUB/RETURN
Continue after STOP,
break key or break point
Commands
Sharp
PC-1500A PC-1403 PC-1360 PC-1280 PC-1475 PC-G850
Alphanumeric(20) with " " or preceded by *. Optional colon.
"Label" *Label or "Label"
Line number or label may be expression. Targets are constant.
Available GOTO expression Available. Target expressions must not contain commas. Available.
ELSE is N/A. Available.
Allowed. Unambiguous because ELSE is not available.
N/A Available. PC-E500S only
Loop executed once, I=0 after loop. Loop executed once, I=0 after loop. Loop not executed, I=1 after loop.
Mandatory Optional
Set a label.
RETURN
All variables are global.
GOSUB "Label" GOSUB *Label
N/A
ON ERROR GOTO
ERL, ERN
ON ERROR GOTO 0
N/A N/A
TRON, TROFF TRON, TROFF turn tracing on/off.
STOP
CONT
PC-1210
PC-1211
PC-1212
PC-1245
PC-1246
PC-1247
PC-1248
PC-1251
PC-1401
PC-1421
PC-1260
PC-1261
PC-1262
PC-1350
PC-2500
PC-E220
PC-G820
PC-E500
PC-E500S
Alphanumeric(7) with " ". Optional colon.
"A", "S", "D", "F", "G", "H", "J", "K", "L", "Z", "X", "C", "V", "B", "N", "M" + some more are reachable with DEF key (SHFT in DEF mode on PC-121x).
THEN is optional.
PC-121x allows THEN only as an alias for GOTO with a jump target. If the first statement is an assignment, LET must be used.
Allowed, nearest ELSE
belongs to nested IF.
Loop executed, I=1 (!)
Limit and step integer in the
range +/-1000.
Executable command anywhere in program. Not executable from keyboard.
Recursion is possible. Local variables must be emulated by arrays.
RESUME,
RESUME NEXT, RESUME target
ARUN, AUTOGOTO
Power on auto start
ARUN, AUTOGOTO
Power on auto start
DEBUG starts in
trace mode
Vista de página 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 35 36

Comentários a estes Manuais

Sem comentários