Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7878045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:32:56+00:00 2026-06-03T03:32:56+00:00

I have a Flex application that needs to be able to validate hundreds of

  • 0

I have a Flex application that needs to be able to validate hundreds of zip codes fairly quickly. I also want to keep the memory space used by the app as small as possible.

Here are a few solutions my team has come up with. Any thoughts on them? Any other ideas?

Check each zip code via…

  1. array of valid zip codes
  2. array of invalid zip codes
  3. soap call to a web service that validates zip codes
  4. query a database table
  5. a tree – 5 nodes high, nodes at the bottom would have boolean values of whether or not the zip is valid. The zip code of 12345 would go from the root to it’s first child, to it’s second… you get the point
  6. validate first 3 numbers via array of valid USPS SCFs then the last two digits via array specific to that SCF.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:32:58+00:00Added an answer on June 3, 2026 at 3:32 am

    Depends on what you are looking for. Do you want to validate the format of the zip code (ie. that it is 5 digits long) or do you want to ensure the zip code is a valid US zip code. I will venture a guess that it is the latter. Take a look at the USPS address API (https://www.usps.com/business/webtools-address-information.htm?). I am willing to bet that will be perfect and less overhead then managing a DB or updating an array and managing all the xxxxx+4 zip codes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Flex. Let's say we have a web application that needs to
I have an Adobe Flex application that needs to call C++ functions from a
I have a flex application that needs the ability to generate and execute JavaScript.
I have an Spring+Hibernate/Flex application that needs to switch dynamically between database schemas. To
I want to create a fairly large-scale Flex web application that has a similar
I have a Flex application that needs to grab reporting data from a JasperReports
I have a portlet. Inside of this portlet I have Flex application that displays
I am starting a web application project that will have an Adobe Flex front-end
I have created one application in flex that is accessing the Java webservice using
Can I create an application with Flex Builder Trial ( that I have just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.