acams考试报名:VB难题!!高手进入
来源:百度文库 编辑:查人人中国名人网 时间:2024/05/09 06:46:24
现在有一个 LABEL1.CAPTION是“CA”
Private Sub Command1_Click()
If Label1.Caption = "ca" Then MsgBox "AF"
End Sub
现在ca是小写,LABEL1的是大写
如何让程序不区分大小写。
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