Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xerrlvl()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XERRLVL()
Set RaSQL/B error handling mode

Syntax
N_XERRLVL([<nLevel>])

Argument
<nLevel> defines how RaSQL/B handles errors. If the argument is omitted, 
errorhandling defaults to Level 1.

Level     Meaning
   0           No error messages are displayed.
   1           Error messages are displayed on line 0 with the message Quit/ 
               Continue? This is most useful for debugging.
   2           Error messages are written to the STDOUT device. This permits 
               maintaining an error log if the EXE is started from DOS (or a 
               BAT file) with console redirection. For example,
                    MYAPP > error.log
   3           Both 1 and 2

Returns
Current error level setting.

Remarks
N_XERRLVL() can be set at any time, even before N_XLOGIN().

Example
* Suppress error displays for
* one statement
N_XERRLVL(0)
N_XUSE('patients ...)
N_XERRLVL(1)


See Also: N_XERRMSG() N_XERROR()

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