home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 20.1 CHECKSSN
- Author: Joe Booth
- Excerpted from "Clipper 5: A Developer's Guide"
- Copyright (c) 1991 M&T Books
- 501 Galveston Drive
- Redwood City, CA 94063-4728
- (415) 366-3600
- */
-
- //───── NOTE: must compile with the /N option!
-
- function checkssn(soc_sec)
- LOCAL k
- for k=1 to 11
- if .not. (k == 4 .or. k == 7)
- if .not. isdigit( substr(soc_sec, k, 1) )
- return .F.
- endif
- endif
- next
- return .T.
-
- // end of file CHP2001.PRG
-