首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上有1个名称为Commandl的命令按钮;1个名称为List1、没有列表项的列表框。编写如下程序: Private Sub Commandl Click()_ Dim x As String,s As String,temp As String Dim
窗体上有1个名称为Commandl的命令按钮;1个名称为List1、没有列表项的列表框。编写如下程序: Private Sub Commandl Click()_ Dim x As String,s As String,temp As String Dim
admin
2018-10-18
21
问题
窗体上有1个名称为Commandl的命令按钮;1个名称为List1、没有列表项的列表框。编写如下程序:
Private Sub Commandl Click()_
Dim x As String,s As String,temp As String
Dim iAs Integer
x=InputBox(“输入字符串”,“输入”)
Ifx<>""Then
For i=Len(x)To 1 Step-1
s=Mid(x,i,1)
If S<>“”Then
temp=s+temp
Else
List 1.Add
选项
A、year new Happy
B、Happy new year
C、raey wen yppaH
D、yppaH wen raey
答案
A
解析
本题的循环中倒序从字符串s中依次取出每一个字符,只要该字符不是空格就将其连接到temp的前面,见到空格就把连接好的temp加入到列表框中,即先加入year,然后是new,最后是Happy。
转载请注明原文地址:https://kaotiyun.com/show/7HFp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
设有如下程序:PrivateSubForm_Click()DimmAsSingle,nAsStringDimflagAsIntegerm=InputBox("请输入一个单精度数")n=
设程序中有以下语句:MsgBox"Visual",,"Basic","等级考试",2执行该语句后,显示一个信息框,以下关于该信息框的叙述中,正确的是
以下不合法的VB变量名是
VisualBasic集成环境由若干窗口组成,其中不能隐藏(关闭)的窗口是()。
下面正确使用动态数组的是()。
以下关于文件的叙述中,错误的是()。
程序流程图中带有箭头的线段表示的是()。
A、DYBEAFCZXB、YDEBFZXCAC、ABDYECFXZD、ABCDEFXYZC前序遍历是指在访问根结点、遍历左子树与遍历右子树这三者中,首先访问根结点,然后遍历左子树,最后遍历右子树;并且,在遍历左右子树时,仍然先访问根结点,然后遍历左
一棵二叉树共有25个结点,其中5个是叶子结点,则度为1的结点数为( )。
能正确表述"x为大于等于5并且小于20的数"的VisualBasic表达式是
随机试题
循行于下肢内踝上八寸以下,在中线的经脉是()。
国际标准化组织ISO质量管理体系标准的质量管理原则提出以()为质量管理工作的中心。
[背景资料]某框架一剪力墙结构,框架柱间距9m,普通框架结构,采用预拌混凝土,钢筋现场加工,采用多层板模碗扣支撑。施工过程中,发生如下事件:事件一:项目部编制《施工组织设计》中规定:钢筋焊接方法采用搭接焊;钢筋机械连接采用钢筋套筒挤压连接;钢筋接头位
热拌沥青混凝土路面施工前的准备工作包括()。
下列典故与《三国演义》无关的是()。
材料一:2015年,天津工业增加值6981亿元,增长9.2%。与之相对应的是,万元工业增加值能耗下降13.2%,降幅同比扩大2.3个百分点。这是下大力气推进新旧动力转换的结果。一“升”一“降”之间,凸显绿色发展理念。作为传统工业城市,针对部分企业
如果豌豆汤和酸模汤在周一提供,那么下列哪一项可以是真的?()如果提供洋葱汤的日子在提供滨豆汤、面汤和豌豆汤之前,下列哪一项必定是真的?()
某公司共有包括总经理在内的20名员工。有关这20名员工,以下三个断定中,只有一个是真的:I.有人在该公司入股。Ⅱ.有人没在该公司入股。Ⅲ.总经理没在该公司入股。则以下哪项是真的?
阅读以下说明,回答下面问题。【说明】在atm(asynchronoustransfermode)传输模式中,信息被组织成信元,因包含来自某用户信息的各个信元不需要周期性出现,这种传输模式是异步的。由于atm技术简化了交换过程,去处了不必要
Therearerareinstanceswhenjusticealmostceasestobeanabstract【C1】______.Rewardor【C2】______areoutquiteindependentof
最新回复
(
0
)