home *** CD-ROM | disk | FTP | other *** search
-
- --------------------------------------------------------------
- Asm ISSTATE() FUNCTION
- by Dirk Lesko
- ______________________________________________________________
-
- SYNTAX: if ISSTATE(<expC>)
-
- PARAMETERS: <expC> character string containing state code
-
- RETURNS: logical .T. if state code is valid
- otherwise returns .F.
-
- PURPOSE: to see whether a state abbreviation is correct
-
- NOTES: parameter can be upper or lowercase
-
- EXAMPLE:
- do whil .t.
- store " " to _state
- @ 10,0 say "Enter state abb:" get _state pict "!!"
- read
-
- if .not. isstate(_state)
- @ 0,0
- @ 0,0 say "Printer not ready, Please correct....."
- loop
- endif
- -----------------------------------------------------------
- && or can be used with the valid command &&
-
- store " " to _state
- @ 10,0 say "Enter state abb:" get _state valid isstate(_state)
- read
-
-
- .EOF