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>isstate() - validate two digit state abbreviations</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     isstate() - validate two digit state abbreviations
  Usage:    <logical> = isstate(<state>)
  Params:   string <state> - the state abbreviation to check
  Returns:  logical .T. if the two digit state code is a valid
            state, .F. if not.

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

                 m_state = space(2)

                 @ 10,0  say "Enter state code to lookup: "
                 @ 10,28 get m_state valid isstate(m_state)
                 read

                      or:

                 ? isstate("NY")
                 * prints .T.

                 ? isstate("TY")
                 * prints .F.


See Also: iszip() state() statecode()

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