home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 20.2 Formalize()
- 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 Formalize(sname)
- LOCAL jj, one_char, upcase:=.t.
- for jj=1 to len(sname)
- one_char := substr(sname,jj,1)
- if upcase .and. islower(one_char)
- sname := stuff(sname,jj,1,upper(one_char))
- upcase :=.f.
- endif
- upcase := ( one_char == " " )
- next
- return retval
-
- // end of file CHP2002.PRG
-