DEFINE VARIABLE cString AS CHARACTER NO-UNDO.
cString = "23146-P-006".
MESSAGE INDEX(cString,"-p")
VIEW-AS ALERT-BOX INFO BUTTONS OK.
Happy Friday,
In progress I want to check if a column contains a specific value. Example: '12345-A-001', '23146-P-006', '23-9-P'.
I want to find any record with '-P' in it anywhere. I searched "contains" with no luck (previous experience operator).
Thanks,
Mike
for each customer no-lock where name matches "*-p*":
/* do something interesting with customers... */
end.