单项选择题
用来设置文件中下一个读写位置的语句是______ 。
A.Skip
B.Seek
C.FileAttr
D.Select
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
要向Data.dat 文件中添加数据,下面语句中正确的是______ 。
A.Open "Datdat" For OutputAs #1
B.Open "Datdaf' For InputAs #1
C.Open Datdat For OutputAs #I
D.Open Datdar For Append As #1
点击查看答案
单项选择题
在窗体上画一个名称为CommonDialog1的通用对话框和一个名为Command1的命令按钮。要求实现这样一个功能:单击命令按钮后,打开一个通用对话框用于保存文件,其窗口标题为“保存”,默认文件名为Data,在“文件类型”栏中显示*.txt。下列程序中能实现以上功能的是______ 。
A.Private Sub Command1_ Click() CommonDialog1. FileName = "Data" CommonDialog1. Filter = "All Files|*.|* |(*.tx|(*.do|*.doc" CommonDialog1. Filterlndex = 2 CommonDialog1. DialogTitle = “保存” CommonDialog1. Action = 2 End Sub
B.Private Sub Command1_ Click() CommonDialog1. FileName = "Data" CommonDialog1. Filter = "All Files|*.*|(*.tx|(*.do|*.doc" CommonDialog1. FilterIndex = 2 CommonDialog1. DialogTitle =“保存” CommonDialog1. Action = 1 End Sub
C.Private Sub Command1_ Click() CommonDialog1. FileName = "Data" CommonDialog1. Filter = "All Files|*.*|(*.tx|(*.do|*.doc" CommonDialog1. FilterIndex = 1 CommonDialog1. DialogTitle = “保存” CommonDialog1. Action = 1 End Sub
D.Private Sub Command1_ Click() CommonDialog1. FileName = "Data" CommonDialog1. Filter = "All Files|*.*|(*.tx|(*.do|*.doc" CommonDialog1. FilterIndex = 1 CommonDialog1. DialogTitle = “保存” CommonDialog1. Action = 2 End Sub
点击查看答案
相关试题
当发生Form_ Click 事件后,下面这段程...
要在D盘的Temp 目录下建立一个名为Name.d...
以下叙述中不正确的是______ 。
下列语句中______ 是顺序文件操作和...
判断是否到达文件尾和返回文件字节数的函数...