Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21847

how to find "similar" strings

$
0
0
I remember something that could do this for example "Fernandez" and "Fernández" were classed as a match but I cannot for the life of me remember what it is. I have looked as "LIKE" but that seems to be for strict pattern matching.

How would I go about creating a function where for example:
"Fernandez" and "Fernández"
"Peter" and "Pieter"
"Pablo Moreno" and "Pablo Moreno" (there should be two spaces between the names but the editor removes them :( )
"Elena Diaz Sanchez" and "Elena Diaz"
"TOB Emma Ruiz" and "Emma Ruiz"

all came as matched pairs?
InStr solves examples 4 and 5 but not the first 3.

The application has a database with students' names and it is possible the same student has been entered by two different people (with slightly different spelling). The application checks the database when a new student is entered for if the EXACT string already exists.

Viewing all articles
Browse latest Browse all 21847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>