Jump to content

partial string match


Natas70
 Share

Recommended Posts

i want to use and input box to search through a list of lets say 10000 names, but i want it to not only return the correct full name, but if i enter a partial name, it returns all instances of that also.

for instance

array holding names = james johnson, frank johnston, john turner

and if i just type john in the input box, i would like it to return all 3

is there a simple way, i looked through help, but really dont think stringcompare will do it.

thanx for any information you might be able to offer

James

Link to comment
Share on other sites

i want to use and input box to search through a list of lets say 10000 names, but i want it to not only return the correct full name, but if i enter a partial name, it returns all instances of that also.

for instance

array holding names = james johnson, frank johnston, john turner

and if i just type john in the input box, i would like it to return all 3

is there a simple way, i looked through help, but really dont think stringcompare will do it.

thanx for any information you might be able to offer

James

I believe you're going to use StringInStr

If it detects the find string, the value it returns should be > 0 :)

Link to comment
Share on other sites

ok another question on the same aspect, how about if you are ocr'ing a jpg and you get a non accurate string is there a way to compare and choose the best option at about 90% letter accuracy

for instance:

jpeg has the word james johnson in it

ocr returns a string janes john5on

or

jpeg american airlines

ocr amer can airlines

any ideas on how to make these = out

I am using the microsoft office 2003 ocr version found some where in the examples, but it is not totally accurate, and have also found an example script that increases the size of the jpeg image, and i have played with the ratio from 1.5 to 2 up to 5 times the size of the original jpeg, and it does not get close to accurate 100% of the time.

once again thanx in advance for any information you(group) can share

James

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...