Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SuperLib 3.50 - function sfil_lock() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FUNCTION SFIL_LOCK()

  Short:
  ------
  SFIL_LOCK() Attempts to lock a file

  Returns:
  --------
  <lSuccess> success

  Syntax:
  -------
  SFIL_LOCK(nTries,lInteract,[cMoreMessage])

  Description:
  ------------
  Attempts to lock entire DBF file. Tries <nTries>
  times and then allows user to retry or not <lInteract> by giving
  message [cMoreMessage] and asking YES/NO.

  Examples:
  ---------
   IF SFIL_LOCK(5,.F.)
       count for "S"$LNAME
       UNLOCK
   ELSE
       LOOP
   ENDIF

  Source:
  -------
  S_SFILOK.PRG


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson