не совсем корректный вопрос. нужен пример вызова подпрограммы?
вот из его же примеров:
- DECLARE SUB CapsOn ()
- DECLARE SUB CapsOff ()
- DECLARE SUB PrntMsg (R%,C%,M$)
-
- CLS
- CapsOn
- PrntMsg 24,1,"<Caps Lock On>"
- LOCATE 12,10
- LINE INPUT "Enter a string (all characters are caps): ",S$
- CapsOff
- PrntMsg 24,1," "
- PrntMsg 25,1,"Press any key to continue..."
- DO WHILE INKEY$="" : LOOP
- CLS
- END
-
- SUB CapsOn STATIC
-
- DEF SEG = 0
-
- POKE &H0417,PEEK(&H0417) OR &H40
-
- DEF SEG
- END SUB
-
- SUB CapsOff STATIC
- DEF SEG=0
-
- POKE &H0417,PEEK(&H0417) AND &HBF
- DEF SEG
- END SUB
-
- SUB PrntMsg (Row%, Col%, Message$) STATIC
-
- CurRow%=CSRLIN : CurCol%=POS(0)
- LOCATE Row%,Col% : PRINT Message$;
-
- LOCATE CurRow%,CurCol%
- END SUB
Ответить
|