Hi
How can I to use LIKE statment in VB, I do not to referecing with SQL , I want to use LIKE manipulating Strings
Printable View
Hi
How can I to use LIKE statment in VB, I do not to referecing with SQL , I want to use LIKE manipulating Strings
Here is the sample usage of Like:VB Code:
Dim test As String test = "12-34" If test Like "##-##" Then Debug.Print "Success" Else Debug.Print "Failure" End If
If pattern is complex then using Regular Expression would be much more efficient.