ANStrFind_AndOrAdd

Checks if an item was found in list of items and return 1 if yes, 0 if not found.
If not found, it can add that missing item to list if caller sets AddItemIfNotFound to 1.
Uses ANString style, where ANStrList is list of strings with defined separator which will be returned as well updated with new item.
Edit 2024-05-31: Adding fix to issue of false positive match when we have only 1 item.

CodeFunctionName What is this?

Public

Tested

Original Work

Access is limited.

Login here using your Linkedin account. to see or download code.

No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Boldcodes.com

Linkedin Login

ThisItem, ByRef ANStrList, Optional AddItemIfNotFound = 1, Optional Sepa = "|"

Views 409

Downloads 149

CodeID
DB ID