home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP20.EXE / CHP2007.PRG < prev    next >
Encoding:
Text File  |  1991-04-30  |  587 b   |  25 lines

  1. /*
  2.    Listing 20.7  Findany()
  3.    Author: Joe Booth
  4.    Excerpted from "Clipper 5: A Developer's Guide"
  5.    Copyright (c) 1991 M&T Books
  6.                       501 Galveston Drive
  7.                       Redwood City, CA 94063-4728
  8.                       (415) 366-3600
  9. */
  10.  
  11. //───── NOTE: must compile with the /N option!
  12.  
  13. function Findany(chr_list,search_str)
  14. LOCAL where:=0,k,the_char
  15. for k = 1 to len(chr_list)
  16.    the_char := substr(chr_list, k, 1)
  17.    where := at(the_char, search_str)
  18.    if where > 0
  19.       exit
  20.    endif
  21. next
  22. return where
  23.  
  24. // end of file CHP2007.PRG
  25.