首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在窗体上有一个文本框Textl,Text属性值为空,然后编写下列事件过程: Private Sub Textl KeyPress(KeyAscii As Integer) Dim str As String,n As Integer str=UCa
在窗体上有一个文本框Textl,Text属性值为空,然后编写下列事件过程: Private Sub Textl KeyPress(KeyAscii As Integer) Dim str As String,n As Integer str=UCa
admin
2012-12-08
22
问题
在窗体上有一个文本框Textl,Text属性值为空,然后编写下列事件过程:
Private Sub Textl KeyPress(KeyAscii As Integer)
Dim str As String,n As Integer
str=UCase(Chr(KeyAscii))
n=Len(str)
Textl.Text=String(n,str)
End Sub
程序运行后,若在文本框中输入单字母“P”,则在文本框Textl中显示的内容为( )。
选项
A、oo
B、oP
C、PP
D、Po
答案
B
解析
转载请注明原文地址:https://kaotiyun.com/show/bVhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
执行下面的程序段后,变量c的值为 a=14 b=30 SlectCaseb\10 Case0 C=a*10+b Case1To9 C=a*100+b Case10To99
使"Microsoft"在当前窗体上输出的语句是
在运行程序时,在文本框中输入新的内容,或在程序代码中改变Text的属性值,相应会触发到的事件是
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序:OptionBase1PrivateSubCommand1_Click()Dima(10)AsIntegerFori=1To10
软件工程的出现是由于【】。
在VisualBasic应用程序中,以下正确的描述是______。
在名称为Forml的窗体上画一个文本框,其名称为Text1,在属性窗口中把该文本框的MultiLine属性设置为True,然后编写如下的事件过程:PrivateSubFormClick()Open"d:\test\smText1.txt"For
数据库在经过一定时间运行后,其性能会逐步下降,这时需要对数据库进行数据库【】。
用树形结构表示实体之间联系的模型是
下列有关二叉树的说法中,正确的是()。
随机试题
大中型企业的生产调度系统组织包括()。
Pagets病是
对于业主的建筑物区分所有权,下列说法正确的是:()
下列各级数中发散的是()。
李老师是一名刚从师范学校毕业的新教师,在一次集体备课中提出想在之后的一堂课中采用一种新式的教学方法。备课组组长于老师否定了李老师的做法,将自己的教案给李老师看,让他照着自己的教案讲,并对他说:“上课就是个经验,一堂课重复上几次,熟了就有经验了,不要去尝试那
“银发中国”需要孝文化。我国现在已步人“老龄化国家”之列,老龄人口基数大,增速快,困难老人数量多,“未富先老”“空巢老人”等现象十分普遍。“何处安放我们的暮年”是我们每个人无法回避的挑战。对于建构养老保障这样一个社会系统工程,我们固然要大力发展经济,但与此
美国授予发明者的专利数量,由1971年的56000项下降到1978年的45000项。美国在研究和开发方面的投入,在1964年到达其顶峰——占GNP的3%,而在1978年只是2.2%,在这期间,研究和开发费用占GNP的比重一直在下降。同一时期,西德和日本却增
在下列模式中,能够给出数据库物理存储结构与物理存取方法的是
Whenbirdscametothegarden,themonkeychasedthemaway.Theverb"chased"means__________.Themonkeypickedupalargesto
Asforme,theproblemwhichisbotheringyoucan______(不太难解决).
最新回复
(
0
)