home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / prog / ks94an.arj / ISOPEN.HDR < prev    next >
Text File  |  1994-04-24  |  1KB  |  51 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _IsOpen( cDBFileName ) --> cOpenStatus
  8.  
  9. PARAMETERS:
  10.  
  11. cDBFileName : database name or alias
  12.  
  13.  
  14.  
  15.  
  16. SHORT:
  17.  
  18. Determine USE mode of database for current or other application.
  19.  
  20. DESCRIPTION:
  21.  
  22. _IsOpen() determines if a specified database is open shared, open exclusively
  23. or not open by the current application or any other workstation on a network
  24. drive.
  25.  
  26. _IsOpen() returns:
  27.  
  28. "E" if the specified database is open exclusively by the current or another
  29. application.
  30.  
  31. "S" if the specified database is open shared by the current or another
  32. application.
  33.  
  34. "" (empty) if the specified database is not open at all.
  35.  
  36. NOTE:
  37.  
  38.  
  39.  
  40. EXAMPLE:
  41.  
  42. t = _IsOpen('TEST.DBF')
  43.  
  44. Result:
  45.  
  46. If TEST.DBF is already open exclusively elsewhere t = 'E'
  47. If TEST.DBF is already open SHARED elsewhere t = 'S'
  48. If TEST.DBF is NOT open at all, anywhere t = '' ( ie, empty() )
  49.  
  50. ******************************************************************************/
  51.