首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设在工程中有一个标准模块,其中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String*1 smark As Single En
设在工程中有一个标准模块,其中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String*1 smark As Single En
admin
2012-03-22
106
问题
设在工程中有一个标准模块,其中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String*1 smark As Single End Type 在窗体上画一个名为Connnand1的命令按钮,要求当执行事件过程Command1_Click时,在c:\的随机文件student..dat写入一条记录。下列能够完成该操作的事件过程是( )。
选项
A、Sub Command1_C1ick() Dim student As studtype Dim record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open" c:\student.dat" For input As # 1 len=len(student) Put # 1,record_
B、Sub Command1_Click( ) Dim student As studtype Dim record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open"c:\student.dat" For random As #1 len=len(student) Put #1,record_n
C、Sub Command1_Click() Dim student As studtype Dim record_no As integer record_no=1 With student .ino=12 .stmame="smith" .strsex="男" .smark=89 End With Open"c:\student.dat" For random As #1 len=len(student) Write #1,record_n
D、Sub Command1_Click() Dim Student As studtype Dim Record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open"c:\student.dat"For output As #1 len=len(student) Put #1,record_no,
答案
B
解析
转载请注明原文地址:https://www.kaotiyun.com/show/aLhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
已经建好一个Frame类的对象myfrm,要为其设置标题,需要调用下面()方法。
查找随机文件的记录时,应使用的方法是
以下哪个方法仅在Applet程序被创建和首次被载入支持Java的浏览时被调用?()。
内部类是在一个类内嵌套定义的类。其特点描述错误的是()
在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:PrivateSubCommand1_Click()StaticxAsIntegerClsFori=1To2
下列数组定义语句错误的是
设在菜单编辑器中定义了—个菜单项,名为menul。为了在运行时隐藏该菜单项,应该使用的语句是
利用E-R模型进行数据库的概念设计,可以分成三步:首先设计局部E-R模型,然后把各个局部E-R模型综合成一个全局的模型,最后得到最终的E-R模型需对全局E-R模型进行
下面不属于软件设计原则的是
为组合框Combo1增加一个数据项“计算机”,下列命令正确的是()。
随机试题
下列哪一项不是外感发热与内伤发热的鉴别要点
治疗气阴亏虚汗证的首选方剂为()
宜用煅淬法炮制的药材是()。
根据《野生药材资源保护管理条例》规定,下列说法错误的是
土石坝工作面的划分,应尽可能()。
出租共有房屋,须提交()的证明。
古人常用“家”“舍”等谦词来称自己一方的亲属朋友。()
设A是4×3阶矩阵且r(A)=2,B=,则r(AB)=________.
Teachersaredifferentintheiropinionsabout______.Thispassagemainlydiscusses______.
Mostofusaretaughttopayattentiontowhatissaid—thewords.Wordsdoprovideuswithsomeinformation,butmeaningsarede
最新回复
(
0
)