Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>neterr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NETERR()


Syntax:     NETERR()

Purpose:    To determine if a USE, USE...EXCLUSIVE, or APPEND BLANK has
            failed in a network environment.

Returns:    A logical value.

            NETERR() returns true (.T.) if the commands in the following
            table fail.

            Table: Commands that Cause NETERR() to Fail
            ------------------------------------------------------------
            Command           Cause
            ------------------------------------------------------------
            USE               USE EXCLUSIVE by another process
            USE...EXCLUSIVE   USE EXCLUSIVE or USE by another process
            APPEND BLANK      FLOCK() or RLOCK() of LASTREC() + 1 by
                              another user
            ------------------------------------------------------------

Usage:      NETERR() can be used in Open_error() to determine if failed
            USE was caused by a network error.

Library:    CLIPPER.LIB


----------------------------------- Example --------------------------------

   USE Customer
   IF NETERR()
      ? "Customer file in use by another"
      WAIT
      RETURN
   ENDIF


See Also: APPEND BLANK USE FLOCK() RLOCK() Net_use()

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