Difference between revisions of "NETERR()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Error Handling and Debugging
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to return .T. if a table could not be shared
 
Function to return .T. if a table could not be shared
Line 22: Line 18:
 
<code lang="recital">
 
<code lang="recital">
 
procedure badfile
 
procedure badfile
if neterr()
+
  if neterr()
    set message to "File not available now."
+
      set message to "File not available now."
endif
+
  endif
 
return
 
return
 
on error do badfile
 
on error do badfile
Line 32: Line 28:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Error Handling and Debugging]]
 +
[[Category:Error Handling and Debugging Functions]]

Latest revision as of 17:24, 3 December 2009

Purpose

Function to return .T. if a table could not be shared


Syntax

NETERR()


See Also

ON ERROR, SET CACHELOAD, SET DCACHE, SET EXCLUSIVE, USE, USED()


Description

The NETERR() function will return .T. if a table could not be shared. This function must be used in conjunction with the ON ERROR command.


Example

procedure badfile
  if neterr()
      set message to "File not available now."
  endif
return
on error do badfile
use patrons


Products

Recital, Recital Server