如果用户输入“A”或“a”.. 输出是 Apple。这也适用于字母“B”“C”等等...我应该在哪里/如何放置和/或运算符?
Private Sub txtchange_Change()
If txtchange.Text = "A" Then
lbloutput.Caption = "Apple"
ElseIf txtchange.Text = "B" Then
lbloutput.Caption = "Banana"
ElseIf txtchange.Text = "C" Then
lbloutput.Caption = "Cat"
ElseIf txtchange.Text = "D" Then
lbloutput.Caption = "Dog"
Else
lbloutput.Caption = "Not Found"
End If
End Sub