单项选择题

在窗体上画一个名称为Command1的命令按钮,然后编写如下程序:   Public Enum S   a=4   b=3   End Enum   Private Sub Command1 Click()   Dim x As Integer   x=a   If x>=3 Then MsgBox"Pass!"   End Sub   运行程序,其结果是( )。

A.运行错误.因为Enum定义有错
B.运行错误.因为x=a类型不匹配
C.运行正常结束,不显示任何信息
D.运行正常.显示内容为“Pass!”的信息框
热门 试题