MSIR.0790 Non-readOnly property cannot be called THIS: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "A non-readOnly property has a Set method. In the Set method, the name of the input value is the same as the name of the property. If a non-readOnly property is called this, it me...")
 
(Automatically generated page update)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
A non-readOnly property has a Set method. In the Set method, the name of the input value is the same as the name of the property. If a non-readOnly property is called this, it means that the input value to the Set method would be referred to with the variable <tt>%this</tt>. But <tt>%this</tt> is always defined to reference the method object. This means that a non-readOnly property would produce an ambiguity in the meaning of <tt>%this</tt> inside the Set method, so it is not allowed.  
A non-readOnly property has a <var>Set</var> method. In the <var>Set</var> method, the name of the input value is the same as the name of the property. If a non-readOnly property is called this, it means that the input value to the <var>Set</var> method would be referred to with the variable <var>%this</var>. But <var>%this</var> is always defined to reference the method object. This means that a non-readOnly property would produce an ambiguity in the meaning of <var>%this</var> inside the <var>Set</var> method, so it is not allowed.  


Use another name for the property.
Use another name for the property.


[[Category:Sirius Mods Messages]]
{{Template:MSIR.0790 footer}}
[[Category:MSIR.0600 - MSIR.0799]]

Latest revision as of 23:34, 3 March 2017

A non-readOnly property has a Set method. In the Set method, the name of the input value is the same as the name of the property. If a non-readOnly property is called this, it means that the input value to the Set method would be referred to with the variable %this. But %this is always defined to reference the method object. This means that a non-readOnly property would produce an ambiguity in the meaning of %this inside the Set method, so it is not allowed.

Use another name for the property.


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