📄 callsub.bas
字号:
rem ----------------------------------------------------rem CallSub.BASrem ----------------------------------------------------Print "CallSub.BAS -- Test BASIC Call and Sub Statements"Print "The next printed line should be from the Subroutine."Printtestvar = 17Call TestSub 5, "Hello", testvarPrintPrint "This is back at the main program. "Print "The value of variable <testvar> is now "; testvarPrint "Did it work?"Endrem ----------------------------------------------------rem Subroutine TestSubrem ----------------------------------------------------Sub TestSub( xarg, yarg$, tvar ) Print "This is written from the Subroutine." Print "The value of variable <xarg> is"; xarg Print "The value of variable <yarg$> is "; yarg$ Print "The value of variable <tvar> is "; tvar tvar = 99 Print "The value of variable <tvar> is reset to "; tvarEnd Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -