UBI EasyCoder 201 IIE Manuál s instrukcemi Strana 115

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 332
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 114
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 113
Chapter 2 Program Instructions
GOSUB, cont.
Examples, cont.
In this examples, line numbers have been omitted and line labels are used
to make the program branch to subroutines:
IMMEDIATE OFF
PRINT "This is the main program"
GOSUB SUB1
PRINT "Youre back in the main program"
END
SUB1: PRINT "This is subroutine 1"
GOSUB SUB2
PRINT "Youre back from subroutine 2 to 1"
RETURN
SUB2: PRINT "This is subroutine 2"
GOSUB SUB3
PRINT "Youre back from subroutine 3 to 2"
RETURN
SUB3: PRINT "This is subroutine 3"
PRINT "Youre leaving subroutine 3"
RETURN
Zobrazit stránku 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 331 332

Komentáře k této Příručce

Žádné komentáře