NTDOC,

FYI, I think you need to use an '*' for a wildcard instead of a '?'.

More importantly I found some logical errors with this function anyway. The following function calls both returned 1 for me.

LIKE2("Edward is very cool, extra stuff, ", "Ed*w*rd *COOL")
LIKE2(", extra stuff, Edward is very cool", "Ed*w*rd *COOL")

Both calls should actually return 0. If the wildcard string does not begin and/or end with a wildcard, then the other string must begin and/or end with exactly the same as the wildcard.

For example, the following returns 1.

? LIKE2("executable.exe", "cu*.exe")

which could be devastating in the wrong situation.

-Eric
_________________________
Eric