Argox PA-20 Basic Programming Manual Uživatelský manuál Strana 16

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 143
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 15
PT-Basic Programming Manual Ver. 1.00 15/143
GOSUB
Purpose
To call a specified subroutine.
Syntax
GOSUB SubName|SubLabel|SubNumber
Example
GOSUB FUN
GOSUB Place
GOSUB 100
END
SUB FUN( )
PRINT "Run SUBNAME"
END SUB
Place:
PRINT "Run SUBLABEL"
RETURN
100
PRINT "RunSUBNUMBER"
RETURN
Description
SubName is the name of a subroutine.
SubLabel is the line label of a subroutine.
SubNumber is the line number of a subroutine.
GOTO
Purpose
To branch unconditionally to a specified line number or line
lable from the normal program sequence.
Syntax
GOTO LineNumber|LineLabel
Example
GOTO FUN
100
PRINT "NUMBER"
WHILE INKEY$=""
WEND
END
FUN:
PRINT "LABEL NAME"
GOTO 100
Description
LineNumber is the integer number in front of a program line.
LineLabel is the string label of a program line.
Zobrazit stránku 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 142 143

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

Žádné komentáře