某同学编写了一个VB程序,功能为在文本框Text1中输入英文字符串,单击“转换”按钮Command1,文本框Text1中的大写英文字母转换为小写,结果显示在文本框Text2中。部分程序段如下: s1=Text. Text s2=" " For i=1 To Len(s1) ch=Mid(s1,i,1) If ch>="A" And ch<="Z" Then '提示:“A”的ASCII码值为65,“a”的ASCII码值为97 End If s2=s2 & ch Next i Text2. Text =s2 要使程序实现上述功能,则方框中的代码是( )。
A . ch=Chr(Asc(ch)+32)
B . ch=Asc(Chr(ch)+32)
C . ch=Chr(Asc(ch)-32)
D . ch=Str(Val(ch)-32)
答案:A