Parker Software Ltd Homepage
Forum Home Forum Home > Email2DB Email Parser > Scripting
  New Posts New Posts RSS Feed: Finding values
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Finding values

 Post Reply Post Reply
Author
Message
Eyespi20 View Drop Down
Professional
Professional
Avatar

Joined: 18 Dec 2009
Location: Greenville, SC
Posts: 50
Post Options Post Options   Quote Eyespi20 Quote  Post ReplyReply Direct Link To This Post Topic: Finding values
    Posted: 23 Feb 2012 at 4:43pm
I have one client whose emails are configured to have city, state, zip all on one line. I need to separate those values into 3 fields, but this is proving very difficult as they often have odd characters and such in the address. One example as follows:

NEWTON(ANDOVER TWP) NJ 000007860

Another example:

PLAINVIEW          @ NY 000011803

I'm getting the city for the most part, but with these odd characters, I'm not getting the state all the time or there is extra spaces in the state that don't get trimmed. I also need to trim off those leading zeros on the zip code, but they are not always present.

I wrote a conditional script on the zip but am unsure if it will process

Sub Main()
Email2DBExtract=Email2DBExtract

if len(zip)>5 then right(zip, 5)

Can someone steer me in the right direction on this, please?
END SUB

MSN
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.125 seconds.
These are the forums for Parker Software, developers of Live Chat Software: WhosOn and Email Automation Software: Email2DB.