A. Private Sub Command1_Click() Open “c:/list.txt”For Input As #1 For i=0 To Listl.ListCount-1 Print #1,List1.List(i) Next i Close #1 End Sub
B.Private Sub Command1_lick() Open “c:/list.txt”For Output As #1 For i=0 To List1.ListCount Print #1,List1.List(i) Next i Close #1 End Sub
C.Private Sub Command1_Click() Open “c:/list.txt”For Output As #1 For i=0 To List1.ListCount -1 Print #1,List1. List(i) Next i C1ese #1 End Sub
D.Private Sub Command1_Click() Open “c:/list.txt”For As #1 For i=0 To List1.ListCount Print #1,List1.List(i) Next i Close #1 End Sub
[单选题]窗体上有一个命令按钮Command1和一个列表框List1,其中List1有0、1、2、3、4的内容,有下列程序: Private Sub Command1_Click() Dim i,s For i=0 To List1.ListCount s=s+List1.List(i) Next i Print s End Sub 程序运行后,单击命令按钮,则窗体上显示的是A.0B.10C.01234D.程序出错
[单选题]窗体上有一个命令按钮Command1和一个列表框List1。先选择列表框中的某一个项目,然后单击命令按钮,将该项目从列表框删除。程序如下:Private Sub Command1_Click()D.im In As IntegerIn=______List.Remove IndE.nd Sub则在程序的空白行的语句是( )。A.List1.IndexB.List1.ListIndexC.List1.TextD.List1.ListCount
[单选题]在窗体上有一个名称为List1列表框和一个名称为Command1的按钮,List1的MultiSelect属性设置为2。当单击Command1按钮时,将会把所有选中的选项全部删除。下列程序缺少的一句是______。Private Sub Command1_ Click () for i = List1. ListCount- 1 To 0 Step- 1 if ______ = True then List1. RemoveItem i End if Next iEnd SubA.List1.S
[单选题]窗体上有一个名为List1的列表框和一个名为Command1的命令按钮,并有下面的事件过程:Private Sub Command1_Click( )
[单选题](23)窗体上有一个命令按钮Command1和一个列表框List1.先选择列表框中的某一个项目,然后单击命令按钮,将该项目从列表框删除。程序如下: Private Sub Commandl_Click() Dim In As Integer In___________ List.Remove Ind End Sub 则在程序的空白行的语句是 A.List1.Index B.List1.ListIndex C.List1.Text D.List1.ListCount
[单选题]在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程:Private Sub Form_Load()List1.AddItem "Item 1"List1.AddItem "Item 2"List1.AddItem "Item 3"E.nd SubPrivate Sub Command1_Click()List1.List(List1.ListCount) = "AAAA"E.nd Sub程序运行后,单击命令按钮,其结果为( )。A.
[单选题]在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程:PrivateSub Form_Load()List1.AddItem "Item1"List1.AddItem "Item2"List1.AddItem "Item3"E.nd SubPrivate Sub Command1_Click()List1.List(List1.Listcount) ="AAAA"E.nd Sub程序运行后,单击命令按钮,其结果为A.把字符串"AAA
[单选题]在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程。Private Sub Form_load()List1.AddItem "Itern 1"List1.AddItem "Itern 2"List1.AddItem "Itern 3"E.nd SubPrivate Sub Command1_Click()List1.List(List1.Listcount)="AAAA"E.nd Sub程序运行后,单击命令按钮,其结果为A.把字符
[单选题]在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程 Private Sub Form_Load() List1.Addltem"Iteml" List1.Addltem"Item2" List1.Addltem"Item3" End Sub Private Sub Command1_click() List1.List(List1.ListCount)="AAAA" End Sub 程序运行后,单击命令按钮,其结果为______。A
[单选题]在窗体上画一个列表框和一个命令按钮,其名称分别为List1和Command1,然后编写如下事件过程。 Private Sub Form_Load() List1.AddItem "Item 1" List1.AddItem "Item 2" List1.AddItem "Item 3" End Sub Private Sub Command1_Click() List1.List(List1.Listcount)="AAAA" End Sub 程序运行后,单击命令按钮,其结果为A