首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim Y As Integer x=20 Y=2 f=x*Y End F
窗体中有命令按钮Commandl,事件过程如下: Public Function f(x As Integer)As Integer Dim Y As Integer x=20 Y=2 f=x*Y End F
admin
2018-12-22
26
问题
窗体中有命令按钮Commandl,事件过程如下:
Public Function f(x As Integer)As Integer
Dim Y As Integer
x=20
Y=2
f=x*Y
End Function
Private Sub Commandl_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/1vMp777K
本试题收录于:
二级Access题库NCRE全国计算机二级分类
0
二级Access
NCRE全国计算机二级
相关试题推荐
通过宏打开某个数据表的宏命令是【】。
要限制宏操作的范围,可以在创建宏时定义()。
下面表达式中,执行后的结果是在“平均分”字段中显示“语文”、“数学”、“英语”三个字段中分数的平均值(结果取整)的是()。
为了在报表中打印当前时间,这时应该插入一个
下面关于列表框和组合框的叙述中,正确的是()。
下列关于VBA面向对象中的“事件”的说法中,正确的是()。
假设学生表中有一个“姓名”字段,查找姓“李”的记录的准则是()。
为了提高软件模块的独立性,模块之间最好是()。
有如下程序:a=100DoWhilea>120s=s+aa=a+1Loop
随机试题
入射光波长选择的原则是
对原始凭证进行审核,是确保会计资料质量的重要措施之一。会计机构、会计人员应当对原始凭证是否()进行审核。
代位追偿权利产生的条件之一为导致保险事故发生的责任方是()。
由()来生产公共物品是解决公共物品生产的一种较好的方法。
在通货膨胀时期,中央银行一般会使用的调控的方法是()。
某普通合伙企业的合伙人甲不能偿还合伙人以外的乙的到期债务100万元,根据《合伙企业法》的规定,乙可以()。
某学校甲、乙、丙三位老师年龄各不相同,一位喜欢足球,一位喜欢篮球,一位喜欢排球。现在知道:甲比喜欢足球的人年龄大;喜欢排球的老师比喜欢篮球的老师年龄小;乙老师年龄最大。由此可以推出:
设某国某年国民收入经济数据如下表5.5。用两种方法计算国民收入。
Atthattime,wedidnotfullygraspthesignificanceofwhathadhappened.
A、Sheisafull-timehousewife.B、Shedoesnotcareforherchildren.C、Sheusedtoliveinthesuburbsinherchildhood.D、She
最新回复
(
0
)