2个回答
展开全部
是只输入一个字母吗?(如果是,代码如下)如果是要输入字符串,可追问
Private Sub Command1_Click()
n = Asc(Text1.Text)
If n >= 65 And n <= 90 Then
n = n + 32
Text1.Text = Chr(n)
ElseIf n >= 97 And n <= 122 Then
n = n - 32
Text1.Text = Chr(n)
End If
End Sub
Private Sub Command1_Click()
n = Asc(Text1.Text)
If n >= 65 And n <= 90 Then
n = n + 32
Text1.Text = Chr(n)
ElseIf n >= 97 And n <= 122 Then
n = n - 32
Text1.Text = Chr(n)
End If
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询