Tests the success of a network function
NETERR([<lNewError>]) --> lError
<lNewError> Is a logical Expression.
<lError> A value based on the success of a network operation or function.
This function return a logical true (.T.) is a USE, APPEND BLANK, or a USE…EXCLUSIVE command is issue and fails in a network enviroment. In the case of USE and USE…EXCLUSIVE commands, a NETERR() value of .T. would be returned if another node of the network has the exclusive use of a file. And the case of the APPEND BLANK command, NETERR() will return a logical true (.T.) if the file or record is locked by another node or the value of LASTREC() has been advanced The value of NETERR() may be changed via the value of <lNewError>. This allow the run-time error-handling system to control the way certains errors are handled.
USE test NEW INDEX test IF ! NetErr() SEEK test->Name := "HARBOUR" IF Found() ? test->Name ENDIF ENDIF USE
Library is rdd