CSetArgErr()
Sets argument error behaviour
Syntax
CSetArgErr( [<nNewMode>] ) -> <nOldMode>
Arguments
[<nNewMode>] New argument error throwing mode
Returns
<nOldMode> The current or old argument error throwing mode.
Description
All CT3 functions are very compliant in their reaction to wrong parameters. By using the CSetArgErr() function, you can make the library throw an error with the severity <nNewMode>. It is then up to the error handler to substitute the return value. <nNewMode> can be one of the severity modes defined in ct.ch: CT_ARGERR_WHOCARES corresponds to ES_WHOCARES CT_ARGERR_WARNING corresponds to ES_WARNING CT_ARGERR_ERROR corresponds to ES_ERROR CT_ARGERR_CATASTROPHIC corresponds to ES_CATASTROPHIC CT_ARGERR_IGNORE The last is the default behaviour and switches any argument error throwing off.
Compliance
CSetArgErr() is a new function in Harbour’s CT3 library.
Platforms
All
Files
Source is ct.c, library is libct.
Pingback: Clipper Tools Set Functions | Viva Clipper !
Pingback: Harbour All Functions – C | Viva Clipper !