Remote-processing BASIC 52 Instrukcja Użytkownika Strona 33

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 163
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 162 163

Komentarze do niniejszej Instrukcji

Brak uwag