RDD

NetErr()

Read or set the network-error flag

Syntax

Signature
NetErr( [lNewError] ) --> lError

Arguments

lNewError

Optional new value of the network-error flag.

Return value

Previous network-error state.

Description

NetErr() reports whether the last network database operation failed and can set a new state.

Notes

The flag is maintained by database operations such as locking and opening files.

Example

NetErr.prg
PROCEDURE Main()

   NetErr( .F. )
   QOut( "Network error: " + IIF( NetErr(), "YES", "NO" ) )

RETURN

Output

See also