Contents - Index


CodeMatch (function)

CodeMatch(sData, sDelim, sOption) : string

This is an optimized way of identifying external waypoints codes to see if they exist in the database, and also set user flags if they do.

sData - string of codes to check. The string of codes is separated by sDelim
sDelim - the delimiter between codes. If the codes are the result of a SQL (Select Code from caches where ....) use $_NewLine, otherwise known as CRLF
sOption -

C - Just return the number of codes that exist in the database
K - Just return the number of codes that don't exist in the database
U - Return the number of codes that exist in the database and set the user flag for these codes
M - Return the number of codes that exist in the database and set the macro flag for these codes
E - Just return a string of codes (separated by sDelim) that Exist in the database
D - Just return a string of codes (separated by sDelim) that Don't exist in the database

sOption is NOT case sensitive and all options respect your current filter.

On my test computer, washing 11,000 waypoints in a text file (with CRLF as the delim) with a database of 20000 waypoints took under 1 second to provide the matching count.

Alpha List         Category List