Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21842

if statement help

$
0
0
If InStr(Text1.Text, "1" Or "2" Or "3" Or "4") Then
Me.Caption = "works"
Else
Me.Caption = "not"
End If

need this working

or what i defo need is

if any alphabet keyword is found even 1 then match found please help
If InStr(Text1.Text, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz") Then
Me.Caption = "works"
Else
Me.Caption = "not"
End If

Viewing all articles
Browse latest Browse all 21842

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>