在窗体上有一个文本框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
【答案解析】
提交答案
关闭