在标准模块中,将a 定义为全局整型变量的语句是________。
A: Private a As Integer
B: Public a As Integer
C: Dim aAs Integer
D: Static a As Integer
A: Private a As Integer
B: Public a As Integer
C: Dim aAs Integer
D: Static a As Integer
举一反三
- 要在窗体Form1中定义一个可以在窗体Form2中使用的整型变量X,可在Form1窗体的通用部分输入语句( )。 A: Dim X As Integer B: Static X As Integer C: Private X As Integer D: Public X As Integer
- 假定有一个模块,在其中定义一个公共变量,正确的是________。 A: Dim x as Integer B: Public Dim x as Integer C: Dim Public x as Integer D: Public x as Integer
- 在VB中,使用变量前一般应对变量进行定义。以下变量定义语句错误的是()。 A: Dim x As Integer B: Dim x As Integer,y As Single C: Var x,y:Integer D: Dim x As Integer,y As Integer
- 下面定义模块级变量a的语句中错误的是()。 A: Dim a% B: Private a% C: Private a As Integer D: Static a%
- 下面可以正确定义2个整型变量和1个字符串变量的语句是【 】 A: Dim n,m As Integer,s As String B: Dim a%,b$,c As String C: Dim a As Integer,b,c As String D: Dim x%,y As Integer,z As Suing