scope.vb

来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 26 行

VB
26
字号
Option Strict OffModule Scope    Dim i As Integer = 5    Function f1()        If i <> 5 Then            System.Console.WriteLine("#A1, value of i is not correct") : Return 1        End If    End Function    Function f2()        Dim i As Integer = 10        If i <> 10 Then            System.Console.WriteLine("#A2, value of i is not correct") : Return 1        End If        If Scope.i <> 5 Then            System.Console.WriteLine("#A3, value of i is not correct") : Return 1        End If    End Function    Function Main() As Integer        f1()        f2()    End FunctionEnd Module

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?