引用ListBox(列表框)最后一个数据项应使用()语句

A:ListBox1.Items[ListBox1.Items.Count] B:ListBox1.Items[ListBox1.SelectedIndex] C:ListBox1.Items[ListBox1.Items.Count-1] D:ListBox1.Items[ListBox1.SelectedIndex-1]

引用ListBox(列表框)当前被选中的数据项应使用()语句

A:ListBox1.Items[ListBox1.Items.Count] B:ListBox1.Items[ListBox1.SelectedIndex] C:ListBox1.Items[ListBox1.Items.Count-1] D:ListBox1.Items[ListBox1.SelectedIndex-1]

在窗体上画两个标签和一个命令按钮,其名称分别为Label1、Label2和Command1,然后编写如下程序:
Private Sub func(L As Label,ByVal a As Integer)
L.Caption="1234"
a=a*a
End Sub
Private Sub Form_ Load( )
Label1.Caption="ABCD"
Label2.Caption=10
End Sub
Private Sub Command1_Click( )
a=Val(Label2.Caption)
Call func (Label1,

A:
Label2.Caption=a
End Sub
程序运行后,单击命令按钮,在两个标签Label1和Label2中显示的内容分别是______。A) ABCD和10
B:1234和100 C:ABCD和100 D:1234和10

在窗体上画两个标签和一个命令按钮,其名称分别为Label1、Label2和Command1,然后编写如下程序:
Private Sub func(L As label,ByVal a As Integer)
L.Caption ="1234"
a=a*a
End Sub
Private Sub Form_Load( )
Label1.Caption="ABCD"
Label2.Caption=10
End Sub
Private Sub Command1_Click( )
a=Val(Label2.Caption)
Call func(Label1,

A:
Label2.Caption=a
End Sub
程序运行后,单击命令按钮,在两个标签Label1和Label2中显示的内容分别是: ______。A) ABCD和10
B:1234和100 C:ABCD和100 D:1234和10

在窗体上画两个标签和一个命令按钮,其名称分别为Labell、Label2和Command1,然后编写如下程序:
Private Sub func(L As Label,ByVal a As Integer)
L.Caption="1234"
a=a*a
End Sub
Private Sub Form_Load( )
Label1.Caption="ABCD"
Label2.Caption=10
End Sub
Private Sub Command1_Click( )
a=Val(Label2.Caption)
Call func(Labell,

A:
Label2.Caption=a
End Sub
程序运行后,单击命令按钮,在两个标签Label1和Label2中显示的内容分别是 ______。A) ABCD和10
B:1234和100 C:ABCD和100 D:1234和10

在窗体上画两个标签和一个命令按钮,其名称分别为Label1、Label2和Command1,然后编写如下程序:
Private Sub func(L As Label,ByVal a As Integer)
L.Caption="1234"
a=a*a
End Sub
Private Sub Form_Load( )
Label1.Caption="ABCD"
Label2.Caption=10
End Sub
Private Sub Command1_Click( )
a=Val(Label2.Caption)
Call func(Label1,

A:
Label2.Caption=a
End Sub
程序运行后,单击命令按钮,在两个标签Label1和Label2中显示的内容分别是______。A) ABCD和10
B:1234和100 C:ABCD和100 D:1234和10

在窗体上画两个标签和一个命令按钮,其名称分别为Label1、Label2和Command1,然后编写如下程序:
Private Sub func(L As Label,ByVal a As Integer)
L.Caption="1234"
a=a*a
End Sub
Private Sub Form_ Load( )
Label1.Caption="ABCD"
Label2.Caption=10
End Sub
Private Sub Command1_Click( )
a=Val(Label2.Caption)
Call func (Label1,

A:
Label2.Caption=a
End Sub
程序运行后,单击命令按钮,在两个标签Label1和Label2中显示的内容分别是______。A) ABCD和10
B:1234和100 C:ABCD和100 D:1234和10

微信扫码获取答案解析
下载APP查看答案解析