scope.bas
来自「Visual Basic 6 大学教程的代码」· BAS 代码 · 共 17 行
BAS
17 行
Attribute VB_Name = "modScope"
Option Explicit
' Declare x as a global
' variable; g has not
' been prefixed for this
' example
Public x As Integer
Sub four()
frmScope.Print "global x is " & x% & " on entering four"
x% = x% + 1
frmScope.Print "global x is " & x% & " on exiting four"
frmScope.Print
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?