Remote-processing BASIC 52 Manuale Utente Pagina 33

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 163
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 32
RPBASIC-52 PROGRAMMING GUIDE
2-14
The above e xample sho ws that ONTICK con tinues to run after a C LEA R stateme nt but variable s are cleared.
If a program error were generated after the clear, the program would stop because ONERR w as cleared.
The next example demonstrates how CLEAR S can be used in a FO R-NEXT loop. A C-STACK error is
returned if the CLEAR S is not in line 20.
10 FOR N=0 TO 10
20 IF N=5 THEN CLEAR S : GOTO 10
30 PRINT N
40 NEXT
>RUN
1
2
3
4
0
1
Vedere la pagina 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 162 163

Commenti su questo manuale

Nessun commento