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

  1. /*
  2.    Listing 18.24  Scatter()
  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.  
  12. function Scatter( nRec_num )
  13. LOCAL numfld:=fcount(),jj,retarry_:={}
  14. nRec_num := if(nRec_num=NIL,Recno(),nRec_num)
  15. goto nRec_num
  16. for jj = 1 to numfld
  17.    Aadd(retarry_,fieldget(jj))
  18. next
  19. return retarry_
  20.  
  21. // end of file CHP1824.PRG
  22.