10-31-2011, 04:54 PM
You can also use Instr function.
If your string values are dynamic, better use dictionary object.
Code:
str="CLIENT DOCUMENTS - WBS" or "COMMISSION REPORTS BY SUB / BRANCH / REP" or "BRANCH REPORT SEARCHES" or "SUB-FIRM REPORT SEARCHES" or "FIRM REPORT SEARCHES"
GroupName="CLIENT DOCUMENTS"
if instr(1,str,GroupName) > 0 then
print "String exists
else
print "String does not exist"
end if
If your string values are dynamic, better use dictionary object.