PDA

View Full Version : Text compare function - generalTextCompare.txt (0/1)



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.

Leonard Slingerland
23-Jun-2009, 01:52 AM
Thank you, I'll certainly give it a try. I've been looking for a way to get support for RegEx, but alas, VDF and RegEx seem to be to separate worlds. Adding this reply with 'RegEx' in the text might help people to find this topic more quickly since 'RegEx' is a work that is likely to be used in search queries :).

Ola Eldoy
23-Jun-2009, 02:41 AM
It seems the file itself is not available as an attachment on the forums. I guess it got lost during conversion to phpBB. I tried to uudecode the file from the post on WASP (http://www.sture.dk/wasp/articledisplay.asp?RecId=184254), but without success. Anyone care to repost?

Hans van de Laar
23-Jun-2009, 02:57 AM
VDF and RegEx seem to be to separate worlds.

Hi Leonard ,

I'm using VDF and Regular expressions by using the regexp.dll activex that comes with vbscript (C:\Windows\System32\vbscript.dll) and it is working without problems.

DavePorter
23-Jun-2009, 04:33 AM
Still available in the old newsgroups...

cheers Dave Porter
2654

Larry Heiges
26-Jun-2009, 12:18 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.

The attachment.