首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上有一个命令按钮,数据文件data.txt的内容如下: "语文" "2001", 87 "数学" "2002", 75 "英语" "2003", 92 "体育" "2004", 66
窗体上有一个命令按钮,数据文件data.txt的内容如下: "语文" "2001", 87 "数学" "2002", 75 "英语" "2003", 92 "体育" "2004", 66
admin
2009-02-13
29
问题
窗体上有一个命令按钮,数据文件data.txt的内容如下:
"语文" "2001", 87
"数学" "2002", 75
"英语" "2003", 92
"体育" "2004", 66
Type bs
aa As String * 2
bb As String * 4
cc As Integer
End Type
Private Sub command1_Click(
Dim xs As bs
Dim fl As Integer
fl = FreeFile
Open "d:\data.txt" For Input As #fl
Do While Not EOF(fl)
Input #fl, xs.aa, xs .bb, xs.cc
List1.AddItem xs.bb
List1.AddItem xs.aa
List1.AddItem xs.cc
Loop
Print EOF(fl)
Close
End Sub
问:在列表框中第一行、第三行、第四行的内容是【 】、【 】、【 】。窗体上打印出的是【 】。
选项
答案
2001,87,2002
解析
当文件指针指向文件的结尾,EOF函数返回True。
转载请注明原文地址:https://kaotiyun.com/show/sb1p777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
一个关系模式为Y(X1,X2,X3,X4),假定该关系存在如下函数依赖:(X1,x2)→X3,X2→X4,则该关系的码为()
下列哪个选项是创建一个标识有“关闭”按钮的语句?()
在下列源代码文件Test.java中,哪个选项是正确的类定义?()
关系模型允许定义三类数据约束,下列不属于数据约束的是()
如果子类中覆盖了父类中的同名方法,则在子类中调用父类中的同名方法时用关键字______;在一个类的内部可以直接调用本类的对象,也可通过关键字this来调用。
变量是程序中的基本存储单元之一,由变量名、变量类型、变量属性、______组成。
E-R图可以直接转换为关系,其每个属性都对应于关系中的一个属性,E-R图的联系转换为关系时,其属性由两部分组成;与该联系有关的键码属性(集);______。
在关系运算中,【】运算是对两个具有公共属性的关系所进行的运算。
请完成下列Java程序。程序的功能是显示用户在命令行方式下指定的任意驱动器目录的内容。提示:publicString[]list();//将目录中所有文件名保存在字符数组中返回。注意:请勿改动main()主方法和其他已有的语句内容,仅在下
Applet工作在图形方式下,向其中绘图、显示动画等都需要使用方法【】。
随机试题
下列情形中,应当以强奸罪定罪处罚的有()。
下列属于移动通信技术的有
下列支持慢性肾盂肾炎诊断的有
38700387026
根据《中华人民共和国注册会计师法》的规定,()负责组织实施对全国会计师事务所执业质量的检查,并对违反《中华人民共和国注册会计师法》的行为实施行政处罚。
上海证券交易所对可能影响证券交易价格或者证券交易量的异常交易行为予以重点监控,这些异常交易行为有()。
社会主义民主政治的本质和核心是生产资料公有制。()
北京明华中学学生发展中心的小刘老师负责向校本部及相关分校的学生家长传达有关学生儿童医保扣款方式更新的通知。该通知需要下发至每位学生,并请家长填写回执。参照“结果示例1.png~结果示例4.png”按下列要求帮助小刘老师编排家长信及回执:在考生文件夹下,
HeatStressThemostcommonhealthproblem【T1】______hotweatherisheatstress.The【T2】______ofheatstressincludewearing
Whydowelaugh?Foryearsscientistshaveaskedthemselvesthisquestion.Nootheranimalslaughandsmile--onlyhumanbeings,
最新回复
(
0
)