Why don't you use the InStr function? If it finds anything, then you can check to see if it's the operator or that it's part of the searchstring (I think that's easier then what you do now)
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |