单项选择题
定义过程的格式中,Static关键字的作用是指定过程中的局部变量在内存中的存储方式。若使用了Static关键字,则
A.每次调用此过程,该过程中的局部变量都会被重新初始化
B.在本过程中使用到的,在其他过程中定义的变量也为Static型
C.每次调用此过程时,该过程中的局部变量的值保持在上一次调用后的值
D.定义了该过程中定义的局部变量为“自动”变量
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
在运行程序时,在文本框中输入新的内容,或在程序代码中改变Text的属性值,相应会触发到什么事件
A.GotFocus
B.Click
C.Change
D.DblCliek
点击查看答案&解析
单项选择题
在窗体中添加一个通用对话框,其名称为CommonDialog1,然后添加一个命令按钮。要求单击命令按钮时,打开一个保存文件的通用对话框。该窗口的标题为“打开”,在文件类型框中显示的是Text Files(*.txt)。则能够满足上述要求的程序是
A.Private Sub Command1_Click() CommonDialog1. Flags=cdloFNHideReadonly CommonDialog Filter="AllFiles(*.*)|*.*|TextFiles"&_ "(*.tx|*.txt|BatchFiles(*.ba|*.bat" CommonDialog1.FilterIndex=1 CommonDialog1.ShowOpen MsgBox CommonDialog1.FileName End Sub
B.Private Sub Command1_Click() CommonDialog1. Flags=cdloFNHideReadonly CommonDialog1. Filter="AllFiles(*.*)|*.*|TextFiles"&_ "(*.tx|*.txt|BatchFiles(*.ba|*.bat" CommonDialog1. FilterIndex=2 CommonDialog1. ShowOpen MsgBox CommonDialog1. FileName End Sub
C.Private Sub Command1_Click() CommonDialog1. Flags=cdloFNHideReadonly CommonDialog1. Filter="AllFiles(*.*)|*.*|TextFdes"&_ "(*.tx|*.txt|BatchFiles(*.ba|*.bat" CommonDialog1.FilterIndex=1 CommonDialog1.ShowSave MsgBox CommonDialog1.FileName End Sub
D.Private Sub Command1_Click() CommonDialog1. Flags=edloFNHideReadonly CommonDialog1. Filter="AllFiles(*.*)|*.*|TextFiles"&_ "(*.tx|*.txt|BatchFiles(*.ba|*.bat" CommonDialog1.Filterlndex=2 CommonDialog1.ShowSave MsgBox CommonDialog1.FileName End Sub
点击查看答案&解析
相关试题
在窗体上画一个名称为Command1的命令按钮...
下列程序 Private Sub form_Click()...
在磁盘C的根目录下有一个名为Sco.dar的文...
程序的基本控制结构是
为了清除列表框中指定的项目,应使用的方法为