首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim yAs Integer x=20:y=2 f=x*y End Function Private S
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim yAs Integer x=20:y=2 f=x*y End Function Private S
admin
2019-06-28
24
问题
窗体中有命令按钮Commandl,事件过程如下:
Public Function f(x As Integer)As Integer
Dim yAs Integer
x=20:y=2
f=x*y
End Function
Private Sub Command l Click()
Dim y As Integer
Static x As Integer
x=10:y=5
y=f(x)
Debug.Print x;y
End Sub
运行程序,单击命令按钮,则立即窗口中显示的内容是
选项
A、10 5
B、10 40
C、20 5
D、20 40
答案
B
解析
static为静态变量,要在过程的实例间保留局部变量的值,用此变量,它的持续时间是整个模块执行的时间,但它的有效作用范围是由其定义位置决定的。
转载请注明原文地址:https://kaotiyun.com/show/M30p777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
在考生文件夹下,“sampl.accdb”数据库文件中已建立好表对象“tStud”和“tScore”、宏对象“mTest”和窗体“fTest”。试按以下要求,完成各种操作:冻结表“tStud”中的“姓名”字段列。
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计好表对象“tAddr”和“tUser”,同时还设计出窗体对象“fEdit”和“fEuser”。请在此基础上按照以下要求补充“fEdit”窗体的设计:在窗体中还有“修改”和“保存”两个
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计好表对象“tAddr”和“tUser”,同时还设计出窗体对象“fEdit”和“fEuser”。请在此基础上按照以下要求补充“fEdit”窗体的设计:将窗体中名称为“lRemark”的
在考生文件夹下,“sampl.accdb”数据库文件中已建立表对象“tStud”。试按以下操作要求,完成表的编辑修改:删除表结构中的“照片”字段。
考生文件夹下存在一个数据库文件“samp3.accdb”,里面已经设计了表对象“tEmp”和窗体对象“fEmp”。同时,给出窗体对象“fEmp”上“追加”按钮(名为btl)和“退出”按钮(名为bt2)的单击事件代码,试按以下要求完成设计:删除表对象“t
在考生文件夹下,“sampl.accdb”数据库文件中已建立好表对象“tStud”和“tScore”、宏对象“mTest”和窗体“fTest”。试按以下要求,完成各种操作:删除“tStud”表结构的“照片”字段列、在“简历"字段之前增添一个新字段(字段
若有SQL语句:Select月底薪+提成-扣除As月收入From工资表;其中,子句"AS月收入"的作用是
VBA语句"DimNewArray(10)asInteger"的含义是( )。
下列叙述中正确的是( )。
某二叉树共有13个结点,其中有4个度为1的结点,则叶子结点数为
随机试题
普通培养基最适宜的灭菌方法是()
A.100级洁净室B.10000级洁净室C.100000级洁净室D.300000级洁净室E.一般生产区
-3,0,23,252,()
在仓储合同的订立和履行过程中,设备监理工程师应当做好的工作有()。
利用直方图分布位置判断生产过程的质量状况和能力,如果质量特性数据的分布宽度边界达到质量标准的上下界限,说明生产过程的质量能力()。
反映企业一定经营期间经营成果的会计等式是()。
根据《企业会计信息化工作规范》(财会[2013]20号),会计软件可能具有以下哪些功能?()
“今隶”指的是()。
某系统集成企业为提升企业竞争能力,改进管理模式,使业务流程合理化实施了(59),对业务流程进行了重新设计,使企业在成本、质量和服务质量等方面得到了提高。
汉字国标码把汉字分为______等级。
最新回复
(
0
)