home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 19.5 Partfind()
- 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
- */
-
- function partfind(expSeek, field_no)
- LOCAL x:=0, plist:={}, y:=len(trim(expSeek)), rec:={}
- seek trim(expSeek)
- if found()
- do while !eof() .and. ;
- trim(expSeek)=substr(fieldget(field_no),1,y)
- Aadd(plist,fieldget(field_no))
- Aadd(rec,recno())
- enddo
- x := achoice(5,20,15,45,plist,.T.)
- if !empty(x)
- goto rec[x]
- return .T.
- endif
- endif
- return .F.
-
- // end of file CHP1905.PRG
-