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

  1. /*
  2.    Listing: 18.16  Generic data entry example
  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. #include "inkey.ch"
  12.  
  13. function test
  14. LOCAL nFields := fcount(), jj, fld_list :={}
  15. memvar getlist
  16. cls
  17. for jj=1 to nFields
  18.    Aadd( fld_list, fieldget(jj) )
  19.    @ jj,01 say field(jj) get fld_list[jj]
  20. next
  21. read
  22. if lastkey() <> K_ESC
  23.    for jj=1 to nFields
  24.        fieldput(jj,fld_list[jj])
  25.    next
  26. endif
  27. return NIL
  28.  
  29. // end of file CHP1816.PRG
  30.