下列语句中,获得列表框Listl中项目个数的语句是A.x=List1.ListCountB.x=ListCountC.x=List1.ListIndexD.x=ListIndex

下列语句中,获得列表框Listl中项目个数的语句是

A.x=List1.ListCount

B.x=ListCount

C.x=List1.ListIndex

D.x=ListIndex


相关考题:

引用列表框(Listl)最后一个数据项应使用的表达式是( )。A.Listl.List(List..ListCount)B.Listl.List(Listl.ListCount-1)C.Listl.List(ListCount)D.Listl.List(ListCount-1)

在窗体上画一个名称为Listl酌列表框,一个名称为Labell的标签,列表框中显示若干个项目。当单击列表框中的某个项目时,在标签中显示被选中项目的名称。下列能正确实现上述操作的程序是:______。A. Private Sub Listl_Click() Labell.Caption=Listl.ListIndex End SubB.Private Sub Listl_Click() Labell.Name=Listl.ListIndex End SubC.Private Sub Listl_click() Labell.Name=Listl.Text End SubD.Private Sub Listl_Click() Labell.Caption=Listl.Text End Sub

下列程序的功能是:依次将列表框List2中的项目移入列表框Listl中,并将列表框List2中移走的项目删除,给程序的空白行选择适当的语句( )。 List1.Addltem List2.List(0) List2.ReMoveltem 0 LoopA.Do Until List2.ListCountB.Do While List2.ListCountC.Do Until List1.ListCountD.Do While List1.ListCount

引用列表框(List1)最后一个数据项应使用()。A、List1.List(Listl1.ListCount)B、List1.List(Listl.ListCount-1)C、List1.List(ListCount)D、Listl.List(ListCounr-1)

执行x=InputBox(“请输入x的值”)时,在弹出的对话框中输入12,在列表框List1选中第一个列表项,假设该列表项的内容为34,使y的值是1234的语句是( )。A.y=Val(x)+Val((List1.List(0))B.y=Val(x)+Val(List1.List(1))C.y=Val(x)Val(List1.List(0))D.y=Val(x)Val(Listl.List(1))

执行x$=InputBox("请输入x的值")时,在弹出的对话框中输入123,在列表框List1选中第一个列表项,该列表项的内容为456,使y的值是123456的语句是( )。A.y=Val(x$)+Val(Listl.List(0))B.y=Val(x$)+Val(List1.List(1))C.y=Val(x$) Val(List1.List(0))D.y=Val(x$) Val(List1.List(1))

下列语句中,获得列表框List1中项目个数的语句是A.x=List1.ListCountB.x=ListCountC.x=List1.ListlndexD.x=ListIndex

执行x$=InputBox(“请输入x的值”)时,在弹出的对话框中输入123,在列表框Listl选中第一个列表项,该列表项的内容为456,使y的值是123456的语句是( )。A.y=Val(x$)+Val(List1.List(0))B.y=Val(x$)+Val(List1.List(1))C.y=Val(x$)Val(List1.List(0))D.y=Val(x$)Val(List1.List(1))

引用列表框(List1)最后一个数据项应使用的语句是()。 A、List1.List(List1.ListCount)B、List1.List(List1.ListCount-1)C、List1.List(ListCount)D、List1.List(ListCount-1)