Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>isstate()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ISSTATE()

    ISSTATE() is useful in applications where the user must input a
    two-character state abbreviation.  It checks to ensure that a valid
    abbreviation has been entered. The syntax is:

    ISSTATE(@<memvar>)

    Required Parameter

    <memvar> is the character expression to be tested.  Note that it
    must be passed by reference (i.e., preceded by an at sign ("@").
    NOTE: this parameter is not required in the Clipper 5.0 version.

    Return Value

    ISSTATE() returns a logical value: True (.T.) if the expression is a
    valid state abbreviation, or False (.F.) if it is not.

    Notes

    ISSTATE() includes all states, U.S. territories, and Canadian
    provinces. Thanks to the magic of APICK(), these three categories
    are logically separated.

    Sample Usage

    ** Summer '87                            
    mSTATE = space(2)                        
    @ 10,10 GET mSTATE VALID IsState(@mSTATE)
    READ                                     
                                             
    ** Clipper 5.0                           
    mSTATE = space(2)                        
    @ 10,10 GET mSTATE VALID IsState()       
    READ                                     

See Also: ISPOSTCODE()

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