Searching a string for special characters.

Hi there I have a string which I wan’t to search for occurrence of a set of special characters. I know that STRPOS can do the job, but if you want to check for say 20 character, the code ends up to be a bit messy! Is there any easyer way to do this?

Hi, if you want only to check if there are special characters or not, you can do so if MyString <> delchr(MyString,’=’,‘XYZ’) then message(‘There are some of characters XYZ’);

Off the top of my head: Reverse the test. Iterate over the string you want to search and check each character with STRPOS against the string made up of the 20 characters you want to find.