首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在窗体上画一个名为Command1的命令按钮,其Command1_Click事件过程如下。 Sub Command1_Click() Dim student As studtype Dim record_no As Integer
在窗体上画一个名为Command1的命令按钮,其Command1_Click事件过程如下。 Sub Command1_Click() Dim student As studtype Dim record_no As Integer
admin
2013-04-11
63
问题
在窗体上画一个名为Command1的命令按钮,其Command1_Click事件过程如下。 Sub Command1_Click() Dim student As studtype Dim record_no As Integer record n=1 With student .ino=12 .strname="Smith" .strsex=“男” .smark=89 End With ______ Put # 1,record_no,student Close # 1 End Sub 要求在c:\的随机文件student..dat写入一条记录。应在程序中空行处填入以下哪条语句使该功能完整
选项
A、Open"c:\student.dat"For Input As # 1 len=len(student)
B、Open"c:\student.dat:For random As # 1 len=len(student)
C、Open"c:\student.dat"For Output As # 1 len=len(student)
D、Open"c:\student.dat"For Append As # 1 len=len(student)
答案
2
解析
打开随机文件的一般格式为Open“文件名”For Random As#文件号[Len=记录长度]随机文件的写操作通过Put语句来实现,其格式为: Put#文件号,[记录号],变量
转载请注明原文地址:https://www.kaotiyun.com/show/tYhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在程序代码中将图片文件mypic.jpg装入图片框Picture1的语句是______。
VisualBasic窗体设计器的主要功能是:______。
为了把一个记录型变量的内容写入文件中指定的位置,所使用的语句的格式为______。
对变量名说法不正确的是______。
为了在运行时能显示窗体左上角的控制框(系统菜单),必须______。
为了把焦点移到某个指定的控件,所使用的方法是______。
下列说法中,不属于数据模型所描述的内容的是______。
全局变量必须在【】模块中定义。
以下说法中正确的是______。
随机试题
下列关于行政处罚听证程序的表述,正确的是哪项?()
Haveyoueverbeentemptedtocutacornerortotaketheeasiestroute,thoughyouknowitmaynotnecessarilybethebestone?
简述水肿的发病机制。
A.子宫性闭经B.卵巢性闭经C.垂体性闭经D.下丘脑性闭经E.原发性闭经
治疗百日咳初咳期首选方剂是( )
现金流量折现法要求折现率既包含安全收益部分,又包含风险收益部分。()
甲、乙二人驾驶摩托车夺取吴某挎包,因车速快将吴某带倒,致其重伤,甲乙的行为()。(2016一专一7)
KobeBryantAfter10seasonswearingtheNo.8onhisback,KobeBryantwillbecomeNo.24nextseason.Thereasonforthes
Itisnecessarythathe(take)______agoodrestafterworkingforalongtime.
With10,600bicyclesincirculation,Pariscityofficialsarehopingtheprogramwillprovidepeoplewithmoreenvironmentallyf
最新回复
(
0
)