首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设有如下通用过程: Public Function Fun(xStr As String)As String Dim tStr As String, strL As Integer tStr="" strL=Len(xStr) i=
设有如下通用过程: Public Function Fun(xStr As String)As String Dim tStr As String, strL As Integer tStr="" strL=Len(xStr) i=
admin
2015-08-28
33
问题
设有如下通用过程:
Public Function Fun(xStr As String)As String
Dim tStr As String, strL As Integer
tStr=""
strL=Len(xStr)
i=1
Do While i<=strL / 2
tStr=tStr & Mid(xStr, i, 1)& Mid(xStr, strL-i+1, 1)
i=i+1
Loop
Fun=tStr
End Function
在窗体上画一个名称为Command1的命令按钮。然后编写如下的事件过程:
Private Sub Command1_Click()
Dim S1 As String
S1="abcdef"
Print UCase(Fun(S1))
End Sub
程序运行后,单击命令按钮,输出结果是( )。
选项
A、ABCDEF
B、abcdef
C、AFBECD
D、DEFABC
答案
C
解析
通用过程Fun的主要功能在于
转载请注明原文地址:https://jikaoti.com/ti/6p60FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
设窗体文件中有下面的事件过程:PrivateSubCommandl_Click()DimSa%=100PrintaEndSub其中变量a和s的数据类型分别是
在考生文件夹下有工程文件sj5.vbp及窗体文件sj5.frm,该程序是不完整的。在窗体上有一个名称为Textl的文本框,3个命令按钮,名称分别是Commandl、Command2和Command3,标题分别是“读入”、“加密转换”和“保存”。要求程序运行
在考生文件夹下有一个工程文件sjt5,vbp。其窗体中有一个名称为Textl的文本框数组,下标从0开始。程序运行时,单击“产生随机数”按钮,就会产生10个3位数的随机数,并放入Textl数组中,如图1-25(a)所示;单击“重排数据”按钮,将把Textl中
要得到字体对话框中用户所选择的字体颜色的属性是______。
下列叙述中不正确的是______。
结构化分析方法是面向______进行分析的方法。
设有如下变量声明:DimTestDateAs.Date为变量TestDate正确赋值的表达方式是______。
下列关于队列的叙述中正确的是______。
实现算法所需的存储单元多少和算法的工作量大小分别称为算法的【】。
一个项目具有一个项目主管,一个项目主管可管理多个项目,则实体“项目主管”与实体“项目”的联系属于【】的联系。
随机试题
___________,汀上白沙看不见。
分子中含有咔唑环结构,通过拮抗5—羟色胺受体而产生止吐作用的药物是()。
下列情况中,律师事务所的哪一或哪些行为不符合法律规定?()
有效合同价是指包括暂定金额和计日工费用的合同价格。()
关于清算与交收,说法错误的是()。
现金清查过程中发现的尚待查明原因的现金短缺或溢余,在按管理权限报经批准后,在进行会计处理时可能涉及的会计科目有()。
A和B注册会计师首次接受委托,负责审计上市公司甲公司20×4年度财务报表。相关资料如下:资料一:甲公司持有联营企业40%的股权,20×4年度按权益法核算确认的投资收益占当年未审利润总额的30%。联营企业20×4年度财务报表由其他注册会计师审计。
中国比内测验适用的年龄段是()。
计算机的存储容量中,1KB表示的是()。
在Internet上捕获并分析如图5-15所示的网络中两个内部网络经由Internet通信的L2TPv2数据帧,请从以下4个选项中选择正确的答案填写到图5-16的(1)~(4)空缺处的相应位置。在图5-15的企业网中,在VPN接入过程中L2TPv2、
最新回复
(
0
)