$ErrSet: Difference between revisions
(Automatically generated page update) |
(Automatically generated page update) |
||
Line 27: | Line 27: | ||
<li>[[Fast/Unload User Language Interface]]</li> | <li>[[Fast/Unload User Language Interface]]</li> | ||
<li>[http://m204wiki.rocketsoftware.com/images/4/4a/JoclrNew.pdf Janus Open Client]</li> | <li>[http://m204wiki.rocketsoftware.com/images/4/4a/JoclrNew.pdf Janus Open Client]</li> | ||
<li>[ | <li>[http://m204wiki.rocketsoftware.com/images/1/17/JosrvrNew.pdf Janus Open Server]</li> | ||
<li>[[Janus Sockets]]</li> | <li>[[Janus Sockets]]</li> | ||
<li>[[Janus Web Server]]</li> | <li>[[Janus Web Server]]</li> |
Revision as of 00:03, 13 September 2013
Increment or clear number of counting errors, set $ERRMSG
Note: Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $ErrSet function.
This function allows you to set or clear the current error message (which is returned by $ERRMSG) and to increment or clear the number of "counting" errors.
The $ErrSet function accepts one argument and returns a number indicating the current number of counting errors. As of Sirius Mods Version 6.8, it is a callable $function.
The first argument is a string indicating the message to be returned by the next $ERRMSG call. If this argument is omitted or null, the current error message is cleared and the number of counting errors is set to 0; otherwise the number of counting errors is incremented.
Syntax
[%COUNT =] $ErrSet(string)
%COUNT is the number of "counting" errors.
For example
%COUNT = $ErrSet('NASTY ERROR') %JUNK = $ERRMSG
would set %JUNK to 'NASTY ERROR' and would increment the number of counting errors.
You can also change the number of counting errors (the Sirius ERCNT parameter) with $Resetn.
Products authorizing $ErrSet
- Sirius functions
- Fast/Unload User Language Interface
- Janus Open Client
- Janus Open Server
- Janus Sockets
- Janus Web Server
- Japanese functions
- Sir2000 Field Migration Facility