单选题
窗体上有一个名称为Command1的命令按钮,其单击事件过程代码如下:
Private Sub
Command1_Click()
Static x As Variant
n=0
x=Array(1,2,3,4,5,6,7,8,9,10)
While
n<=4
x(n)=x(n+5)
Print x(n);
n=n+1
Wend
End Sub
运行程序,单击命令按钮Command1,窗体上显示的是______。
- A.1 2 3 4 5
- B.6 7 8 9 10
- C.2 3 4 5 6
- D.6 2 3 4 5