Remote-processing BASIC 52 Manuel d'utilisateur Page 33

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 163
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 162 163

Commentaires sur ces manuels

Pas de commentaire