home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing: 18.16 Generic data entry example
- 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
- */
-
- #include "inkey.ch"
-
- function test
- LOCAL nFields := fcount(), jj, fld_list :={}
- memvar getlist
- cls
- for jj=1 to nFields
- Aadd( fld_list, fieldget(jj) )
- @ jj,01 say field(jj) get fld_list[jj]
- next
- read
- if lastkey() <> K_ESC
- for jj=1 to nFields
- fieldput(jj,fld_list[jj])
- next
- endif
- return NIL
-
- // end of file CHP1816.PRG
-