Hello All,
I am looking for a way to search a char for a value anywhere within the Char. Below is my code to search from the beginning but how can I determine if "test" is anywhere in the char?
Thanks in advance
Mike
DEF VAR cValue AS CHAR.
cValue = "This is a test".
IF cValue BEGINS "This" THEN MESSAGE "In There" VIEW-AS ALERT-BOX.
ELSE MESSAGE "NOT in There" VIEW-AS ALERT-BOX.
I am looking for a way to search a char for a value anywhere within the Char. Below is my code to search from the beginning but how can I determine if "test" is anywhere in the char?
Thanks in advance
Mike
DEF VAR cValue AS CHAR.
cValue = "This is a test".
IF cValue BEGINS "This" THEN MESSAGE "In There" VIEW-AS ALERT-BOX.
ELSE MESSAGE "NOT in There" VIEW-AS ALERT-BOX.