home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / lan1 / blts.lzh / BLT8 < prev    next >
Text File  |  1989-08-31  |  2KB  |  42 lines

  1.                Using Clipper Applications on LANtastic
  2.  
  3.  
  4. 1. LANtastic and Clipper use the DOS 3.1 (and later) file and record
  5.    locking provided through the SHARE command.  Something to note is
  6.    that a Clipper application must be written and compiled with this
  7.    in mind.  Applications compiled with Clipper for use on LANs which
  8.    use their own proprietary file and record locking schemes (i.e.
  9.    Novell) will most likely not work without modification.
  10.  
  11. 2. To open files in a sharable mode, issue the dBASE command SET
  12.    EXCLUSIVE OFF before issuing any dBASE USE commands.
  13.  
  14. 3. The compiled executable files (xxx.exe) produced by the Clipper
  15.    compiler must be set to READ ONLY with the DOS ATTRIB command.
  16.  
  17. 4. Clipper provides the following commands for locking records and
  18.    files:
  19.  
  20.      RLOCK()   Attempts to lock the current record of a file and
  21.                returns True if successful, False if not.
  22.  
  23.      FLOCK()   Attempts to lock the currently opened file and returns
  24.                True if successful, False if not.
  25.  
  26.      NETERR()  Returns a True value if two users attempt to add a
  27.                blank record to the end of a file at the same time, a
  28.                common occurrence in dBASE/Clipper applications.
  29.  
  30. 5. A general issue with any multiuser database is: What happens when
  31.    a file or record is locked and that user's computer locks up or
  32.    for some reason is disconnected from the LAN?  In Clipper
  33.    applications, SHARE takes care of the problem by noticing that the
  34.    user who locked the file or record has stopped accessing it, and
  35.    the lock is removed after about 15-30 seconds.
  36.  
  37. 6. In the event of a LAN lockup or server crash, you will find it
  38.    necessary to rebuild the index files.  Often, a entry being worked
  39.    on at the time of the crash will be completely lost.  Both of
  40.    these problems are not related to LANtastic, but dBASE, and both
  41.    problems also occur in single user Clipper/dBASE applications.
  42.