LastCommandErrorCount (Daemon property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 26: Line 26:
</pre>
</pre>


[[Category:Daemon class|LastCommandErrorCount]]
[[Category:Daemon methods|LastCommandErrorCount]]
[[Category:System methods]]
[[Category:System methods]]

Revision as of 17:50, 2 December 2010

Number of counting errors for daemon.

LastCommandErrorCount is a member of the Daemon class

This method returns the number of counting errors for the daemon (the Sirius ERCNT parameter value) from the last Run method. The method returns 0 if Run has yet to be invoked for that Daemon object.

LastCommandErrorCount Syntax

%num = %daem:LastCommandErrorCount

Syntax Terms

%num
A numeric variable to contain the value of the number of counting errors.
%daem
A previously defined and instantiated Daemon object.

Daemon objects set ERCNT to 0 after each request, so you might use lastCommandErrorCount as follows:

%daem:run('I FOOBAR')
assert not %daem:lastCommandErrorCount