Larry Heiges
17-Oct-2008, 12:17 AM
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
capabilities.
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.
Enjoy.
Larry Heiges
App-2-Win Systems, Inc.
LookFeel for Windows
lheiges at app-2-win.com
LFW11.1
Application design and implementation.
Support and consultation services.
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
capabilities.
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.
Enjoy.
Larry Heiges
App-2-Win Systems, Inc.
LookFeel for Windows
lheiges at app-2-win.com
LFW11.1
Application design and implementation.
Support and consultation services.