Hi all,
I need to look for special characters in a string before further processing. The character(s) could be anywhere in the string. I think the Match() function works fine, but don't know how to form the match pattern. The characters I'm looking for are:
- < or > (Less than or greater than)
- : (Colon)
- “ (double quote)
- / (forward slash)
- \ (backslash)
- | (vertical bar or pipe)
- ? (question mark)
- * (asterisk)
This code works, but I'm wondering how to add a double quote ( " ) to the match...
// Make sure there aren't any disallowed characters in ls_CalProcedure
lb_match = Match(ls_CalProcedure, "[<>:/\|]")
if lb_match = true then
MessageBox("Add Attachment", "The Cal Procedure cannot contain any of the following special characters:~r~n < > : / \ | ? * ", StopSign!)
return -1
end if
~~~Tracy