首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体中有命令按钮Commandl,事件过程如下: Public Function f(xAs Integer)As Integer DimYAs Integer x=20 y=2 f=-x*y End Fun
窗体中有命令按钮Commandl,事件过程如下: Public Function f(xAs Integer)As Integer DimYAs Integer x=20 y=2 f=-x*y End Fun
admin
2015-08-28
23
问题
窗体中有命令按钮Commandl,事件过程如下:
Public Function f(xAs Integer)As Integer
DimYAs Integer
x=20
y=2
f=-x*y
End Function
Private Sub Commandl Click()
Dim yAs Integer
Static X As Integer
x=10
y=5
y=f(x)
Debug.Printx;y
End Sub
运行程序,单击命令按钮,则立即窗口中显示的内容是
选项
A、10 5
B、10 40
C、20 5
D、20 40
答案
B
解析
static为静态变量,要在过程的实例间保留局部变量的值,用此变量,它的持续时间是整个模块执行的时间,但它的有效作用范围是由其定义位置决定的。
转载请注明原文地址:https://jikaoti.com/ti/IB20FFFM
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
关系模型允许定义3类数据约束,下列不属于数据约束的是
窗体“滚动条”属性值有【】个选项。
执行下面的程序段后,变量a的值为______。a=0Fori=2.7To5.9Step0.5a=a+1Nexti
假定有如下的Sub过程:Subsfun(xAsSingle,yAsSingle)t=xx=t/yy=tModyEndSub在窗体上添加一个命令按钮(名为Command1),然后
窗体上添加有3个命令按钮,分别命名为Command1、Command2和Command3,编写Command1的单击事件过程,完成的功能为:当单击按钮Command1时,按钮Command2可用,按钮Command3不可见。以下事件过程中正确的是(
在企业中,职工的“工资级别”与职工个人“工资”的联系是()。
SQL查询就是用户使用SQL语句来创建的一种查询。SQL查询主要包括联合查询、传递查询、______和子查询等。
数据流图的类型有______和事务型。
窗口事件是指操作窗口时所引发的事件,下列不属于窗口事件的是
Access提供了两种字段数据类型保存文本和数字组合的数据,这两种类型是:文本和______。
随机试题
B665型牛头刨床工作台上平面的平面度在任意300mm测量长度上的公差为0.028mm。()
如何理解孙中山的三民主义学说?
A、Keepacoolheadinthefirstplace.B、Tellthemiftheylieagain,theywillbepunished.C、Punishtheirchildren.D、Tellthe
老年男性,70岁,既往有风心病病史,因突发全腹剧烈疼痛5小时来诊,查体:血压100/60mmHg,心率130~150次/分,律不齐,腹胀,无明显腹肌紧张如患者逐渐出现腹膜炎表现而行急诊手术治疗,则术中可能发现
背景资料:某城市高架桥上部结构为钢筋混凝土顸应力简支梁,下部结构采用独柱式T形桥墩,钻孔灌注桩基础。灌注混凝土桩时,为了防止桩顶混凝土不密实,根据实际情况,项目部技术人员分析的可能原因有:①超灌高度不够;②商品混凝土浮浆较多;
根据《税务行政处罚听证程序实施办法(试行)》的规定()。
为置换、修理或矫正因设计错误、铸造或原材料缺陷而造成的被保险机器本身的缺点错误所支付的费用,应由()承担。
甲公司从事房地产开发经营业务,对出租的商品房、土地使用权和商铺均采用成本模式进行后续计量。2018年度发生的有关交易或事项如下(不考虑增值税因素):资料一:1月1日,因商品房滞销,董事会决定将两栋商品房用于出租。1月20日,甲公司与乙公司签订租赁合同并将
食品感官检验中定量分析的方式包括()
Write-upofPresentations1DemandGenerationisthebasisofallmarketingcampaigns!Youwilllearncreativemethodsofdemand
最新回复
(
0
)