Attached is a text compare function that supports multiple * and ?
wildcards. It can control case testing with an argument, and supports
an alternate termination character. The basic algorithm was in Dr.
Dobb's Journal, September 2008 edition, but has been modified to
support ? wildcards and converted from C to DF (of course.)

The attached file has the function in a button object and has testing
methods to verify the comparisons. It also includes a "matches" test
for comparison. Take a look at the various tests for usage and

This is one of those little functions that just sort of bug you until
they are written... so last night I bit the bullet and wrote
(converted) it.


Larry Heiges
App-2-Win Systems, Inc.
LookFeel for Windows
lheiges at


Application design and implementation.
Support and consultation services.