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 srec_lock() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FUNCTION SREC_LOCK()

  Short:
  ------
  SREC_LOCK() Attempts to lock a record

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

  Syntax:
  -------
  SREC_LOCK(nTries,lAskMore,cMoreMessage)

  Description:
  ------------
  Attempts to lock current record. Tries <nTries> times
  and then allows user to retry or not based on <lAskMore> by
  giving message <cMoreMessage> and asking YES/NO.

  Examples:
  ---------
   IF SREC_LOCK(5,.T.,"Unable to lock record. Try again?")
       REPLACE XXX WITH YYY, ZZZ WITH BBB
       UNLOCK
   ELSE
       LOOP
   ENDIF

  Source:
  -------
  S_SRECLO.PRG


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