LoadMsgctl (XmlDoc subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 14: Line 14:
==Usage notes==
==Usage notes==
==Examples==
==Examples==
If the only <var>MSGCTL</var> command issued in the Online has been:
<p class="code">MSGCTL M204.0843 NOOPR</p>
Then the following request:
<p class="code">begin
%d    is object xmlDoc auto new
%d:loadMsgctl
%d:print
end
</p>
Produces:
<p class="output"><nowiki><msgctls M204Version="7.7.0F">
  <msg num="M204.0843" class="I" auditType="MS" term="no" count="no"/>
</msgctls>
</nowiki></p>
(The value of the <code>M204Version</code> attribute will, of course, depend on the Model 204 version you are using.)
If you subsequently return M204.0843 to its normal state:
<p class="code">MSGCTL M204.0843 OPR</p>
Then the result of the above request will be:
<p class="output"><nowiki><msgctls M204Version="7.7.0F">
  <msg num="M204.0843" class="I" auditType="MS" term="no" opr="yes" count="no"/>
</msgctls>
</nowiki></p>
The <code>opr="yes"</code> attribute indicates that the message is sent to the console operator.
==See also==
==See also==
{{Template:XmlDoc:LoadMsgctl footer}}
{{Template:XmlDoc:LoadMsgctl footer}}

Revision as of 21:28, 13 July 2016

Load MSGCTL commands to this XmlDoc (XmlDoc class)

[Introduced in Model 204 7.7]


This page is under construction.

Syntax

doc:LoadMsgctl[( [EDEFHD= forRocketSupport])]

Syntax terms

doc An XmlDoc object, to which elements are added corresponding to the cumulative set of MSGCTL commands which have been issued, or to the single MSGCTL setting as specified by the EDEFHD argument.
EDEFHD A string of at least 14 bytes. If this argument is specified, it is used to create a single element in the doc method object, corresponding to the first 14 bytes of the value specified for EDEFHD.

Usage notes

Examples

If the only MSGCTL command issued in the Online has been:

MSGCTL M204.0843 NOOPR

Then the following request:

begin %d is object xmlDoc auto new %d:loadMsgctl %d:print end

Produces:

<msgctls M204Version="7.7.0F"> <msg num="M204.0843" class="I" auditType="MS" term="no" count="no"/> </msgctls>

(The value of the M204Version attribute will, of course, depend on the Model 204 version you are using.)

If you subsequently return M204.0843 to its normal state:

MSGCTL M204.0843 OPR

Then the result of the above request will be:

<msgctls M204Version="7.7.0F"> <msg num="M204.0843" class="I" auditType="MS" term="no" opr="yes" count="no"/> </msgctls>

The opr="yes" attribute indicates that the message is sent to the console operator.

See also