MSIR.0836 Named parameters should not begin with %: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A named parameter was specified on a method invocation and the name began with a percent sign (%). Even though method declarations specify parameter names starting with a percent sign, the percent sign should not be specified on the method invocation.  
A named parameter was specified on a method invocation and the name began with a percent sign (%). Even though method declarations specify parameter names starting with a percent sign, the percent sign should not be specified on the method invocation.  


If the intent was for the name after the percent sign to be a parameter name, simply remove the percent sign. If the intent of the equal sign (=) was to pass the boolean result of an equality comparison to a method, use the comparison operator word <tt>Eq</tt> instead of the equal sign, or put the comparison inside parentheses.
If the intent was for the name after the percent sign to be a parameter name, simply remove the percent sign. If the intent of the equal sign (<tt>=</tt>) was to pass the boolean result of an equality comparison to a method, use the comparison operator word <var>Eq</var> instead of the equal sign, or put the comparison inside parentheses.


[[Category:Sirius Mods messages]]
{{Template:MSIR.0836 footer}}
[[Category:MSIR.0800 - MSIR.0999]]

Latest revision as of 23:35, 3 March 2017

A named parameter was specified on a method invocation and the name began with a percent sign (%). Even though method declarations specify parameter names starting with a percent sign, the percent sign should not be specified on the method invocation.

If the intent was for the name after the percent sign to be a parameter name, simply remove the percent sign. If the intent of the equal sign (=) was to pass the boolean result of an equality comparison to a method, use the comparison operator word Eq instead of the equal sign, or put the comparison inside parentheses.


Message attributes:

RETCODEO=0Sets online return code
RETCODEB=4Sets batch (single user) return code
CLASS=EError class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter
AUDITERWrites the message with line type ER to the audit trail
COUNTIncrements the error count (ERCNT) parameter
ECHODisplays the line that caused the error

Back to list of messages