单选题
在窗体上画两个标签和一个命令按钮,其名称分别为Label1、Label2和Command1,然后编写如下程序:
Private Sub func(L As Label)
L.Caption="1234"
End Sub
Private Sub Form_Load()
Label1.Caption="ABCDE":Label2.Caption=10
End Sub
Private Sub Command1_Click()
a=Val(Label2.Caption):Call
func(Label1):Label2.Caption=a
End Sub
程序运行后,单击命令按钮,则在两个标签中显示的内容分别为______。
- A.ABCD和10
- B.1234和100
- C.ABCD和100
- D.1234和10