首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
窗体上有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
23
问题
窗体上有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://jikaoti.com/ti/FSm0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
为了对有序表进行对分查找,则要求有序表
有如下程序:PrivateSubForm_Click()DimsAsInteger,pAsIntegerp=1Fori=1To4 Forj=1Tois=s+j Nextj p=p*sNextiP
在窗体上画一个命令按钮和一个文本框(名称分别为Command1和Text1),并把窗体的KeyPreview属性设置为True,然后编写如下代码:DimSaveAllAsStringPrivateSubForm_Load()
关于KeyPress事件,以下叙述中正确的是()。
下列叙述中正确的是()。
下面不属于软件需求分析阶段主要工作的是()。
要删除列表框中最后一个列表项,正确的语句是()。
窗体上有一个名称为Combo1的组合框,为了引用Combo1中最后一个列表项,应使用的表达式是
A、DYBEAFCZXB、YDEBFZXCAC、ABDYECFXZD、ABCDEFXYZC前序遍历是指在访问根结点、遍历左子树与遍历右子树这三者中,首先访问根结点,然后遍历左子树,最后遍历右子树;并且,在遍历左右子树时,仍然先访问根结点,然后遍历左
设循环队列的存储空间为Q(1:35),初始状态为front=rear=35。现经过一系列入队与退队运算后,front=15,rear=15,则循环队列中的元素个数为
随机试题
国际银团贷款中的担保人不享有的权利是()
下列指标中的对微小心肌损伤可以诊断的是
企业法人出现下列哪些情形时,可以被认为具备了破产原因?()
我国《宪法》规定县级以上的各级地方人民政府设立审计机关,地方各级审计机关依照法律规定独立行使审计监督权,对下列哪些机关负责?
债券本期收益率的计算公式是()。
()是一种最高层次的职业道德。
在窗体上画一个名称为Command1的命令按钮,一个名称为Label1的标签,然后编写如下事件过程:PrivateSubCommand1_Click() s=0 Fori=1To15 x=2*i-1 IfxMod
Howoftendoestheshowair?
ItwouldbehardforKimDaeJung,SouthKorea’spresident,nottohavehadmixedfeelingsabouthisvisittoJapanthisweek.M
ThenumberofInternetusersinChinahasincreasedby28percentand【C1】______87million,accordingtoa【C2】______released
最新回复
(
0
)