Shawn Caldwell writes ..

>I am having a problem with a script I'm writing for a search button.
>it works just fine except when I'm searching for a part number with a
>letter in it. I am searching through a comma delimited database. If
>I have A35CH5 and A22F4, and I search for A22F4, my script will read
>through my dbase and spit out part number A35CH5. I tried this with
>a part number that had a letter in the middle like 9C452 and 95H33.
>Again, I searched for 95H33 and it spit out 9C452. Here is a copy of my
>script. If you could offer any help, I would be grateful.

your explanation above doesn't make sense .. you start by saying that your
script works just fine except when you're searching for a part number with a
letter in it

then your only two examples both have letters in them

and you don't explain the relationship between the two part numbers .. do
they appear on lines one after each other in your data file ? .. what's the
story ?

I can only guess that - for some reason - you have multiple part numbers on
each line and your split isn't working the way you're expecting because
there's nothing immediately obvious in your script that would cause the
problem you're describing if the part numbers were on different lines

-- 
  jason king

  A Canadian law states that citizens may not publicly remove bandages.
  - http://dumblaws.com/

Reply via email to