Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>state() - get the 2 digit state abbr. based on zipcode</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     state() - get the 2 digit state abbr. based on zipcode
  Usage:    <state> = state(<zipcode>)
  Params:   string <zipcode> - the zip code to check as a string

  Returns:  a string equal to the 2 digit state code that pertains
            to the specified zip code, or null if not found or error.

 ---------------------------------- Example ---------------------------------

                 mzip = space(10)
                 @ 10,0 say "Enter zip:" get mzip pict "99999-9999"
                 read
                 ? "State is: "+state(mzip)

  Note:     This function relies on the same table used by iszip().
            Please refer to the notes in the iszip() function for
            important information about ranges of zip codes.


See Also: isstate() iszip() statecode() addzip()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson