我的上司是女王免费版:VB难题!!高手进入

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/03 06:24:03
现在有一个 LABEL1.CAPTION是“CA”

Private Sub Command1_Click()
If Label1.Caption = "ca" Then MsgBox "AF"

End Sub

现在ca是小写,LABEL1的是大写
如何让程序不区分大小写。

If StrComp(Label1.Caption, "ca", 1)=0 then msgbox "AF"

以上。
热的老狼

Private Sub Command1_Click()
If UCASE(Label1.Caption) = "CA" Then MsgBox "AF"
End Sub