home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 20.7 Findany()
- 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 Findany(chr_list,search_str)
- LOCAL where:=0,k,the_char
- for k = 1 to len(chr_list)
- the_char := substr(chr_list, k, 1)
- where := at(the_char, search_str)
- if where > 0
- exit
- endif
- next
- return where
-
- // end of file CHP2007.PRG
-