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

  1. /*
  2.    Listing.: 16.9  Add a record 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. memvar mId_code
  12. begin sequence
  13.    append blank
  14.    if neterr()         // Check if append work ok
  15.       ? "ERROR: Cannot add a record to the file..."
  16.       inkey(500)
  17.       break
  18.    endif
  19.    if rlock()
  20.       replace CUSTOMER->id_code with mId_code
  21.       unlock
  22.    endif
  23. end sequence
  24.  
  25. // end of file CHP1609.PRG
  26.