韩国电视剧2015排行榜:VB难题!!高手进入

来源:百度文库 编辑:高考问答 时间:2024/05/05 19:18:52
现在有一个 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