LoadMessageInfo (XmlDoc subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (add <var>s)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Template:XmlDoc:LoadMessageInfo subtitle}}
{{Template:XmlDoc:LoadMessageInfo subtitle}}


This page is [[under construction]].
==Syntax==
==Syntax==
{{Template:XmlDoc:LoadMessageInfo syntax}}
{{Template:XmlDoc:LoadMessageInfo syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table>
<tr><th>doc</th>
<tr><th>doc</th>
<td>XmlDoc object</td></tr>
<td>An <var>XmlDoc</var> object, to which elements are added corresponding to the selected messages.</td></tr>
 
<tr><th>string</th>
<tr><th>string</th>
<td>string<br/>This default value of this argument is [[??]].</td></tr>
<td>A wildcard pattern to select the messages to place into the <var>XmlDoc</var>.</td></tr>
</table>
</table>
==Usage notes==
 
==Examples==
==Examples==
The following request:
<p class="code">begin
%d    is object xmlDoc auto new
%d:loadMessageInfo('M204.084*')
%d:print
end
</p>
Produces:
<p class="output"><nowiki><messages M204Version="7.7.0F">
  <msg num="M204.0840" class="E" auditType="ER" count="yes" retcodeb="4">
      Disk I/O error while formatting
  </msg>
  <msg num="M204.0841" class="E" auditType="ER" count="yes" retcodeb="4">
      Bug .. CCAGRP already in directory
  </msg>
  <msg num="M204.0842" class="E" auditType="MS" count="no" retcodeb="4">
      CREATEG command rejected
  </msg>
  <msg num="M204.0843" class="I" auditType="MS" term="no" opr="yes" count="no">
      <sub type="C"/>
  </msg>
  <msg num="M204.0844" class="I" auditType="MS" opr="yes" count="no">
      Recovery is now complete
  </msg>
  <msg num="M204.0845" class="E" auditType="ER" count="yes" retcodeb="4">
      Updates not allowed during recovery
  </msg>
  <msg num="M204.0846" class="E" auditType="MS" count="no" retcodeb="4">
      Group is in use
  </msg>
  <msg num="M204.0847" class="E" auditType="ER" count="yes" retcodeb="4">
      Close group before deleting
  </msg>
  <msg num="M204.0848" class="I" auditType="MS" count="no">
      Perm group deleted:
      <sub type="suffix" desc="name"/>
  </msg>
  <msg num="M204.0849" class="E" auditType="ER" count="yes" retcodeb="4">
      Group not found:
      <sub type="suffix" desc="name"/>
  </msg>
</messages>
                                             
</nowiki></p>
==See also==
==See also==
<ul>
<ul>
<li><var>[[LoadMsgctl (XmlDoc subroutine)|LoadMsgctl]], which produces an XmlDoc with the same attributes for the <code>&lt;msg></code> elements.
<li><var>[[LoadMsgctl (XmlDoc subroutine)|LoadMsgctl]]</var>, which produces an <var>XmlDoc</var> with the same attributes for the <code>&lt;msg></code> elements. </li>
</ul>
</ul>


{{Template:XmlDoc:LoadMessageInfo footer}}
{{Template:XmlDoc:LoadMessageInfo footer}}

Latest revision as of 14:25, 14 July 2016

Load message info into this XmlDoc (XmlDoc class)


Syntax

doc:LoadMessageInfo[( [string])]

Syntax terms

doc An XmlDoc object, to which elements are added corresponding to the selected messages.
string A wildcard pattern to select the messages to place into the XmlDoc.

Examples

The following request:

begin %d is object xmlDoc auto new %d:loadMessageInfo('M204.084*') %d:print end

Produces:

<messages M204Version="7.7.0F"> <msg num="M204.0840" class="E" auditType="ER" count="yes" retcodeb="4"> Disk I/O error while formatting </msg> <msg num="M204.0841" class="E" auditType="ER" count="yes" retcodeb="4"> Bug .. CCAGRP already in directory </msg> <msg num="M204.0842" class="E" auditType="MS" count="no" retcodeb="4"> CREATEG command rejected </msg> <msg num="M204.0843" class="I" auditType="MS" term="no" opr="yes" count="no"> <sub type="C"/> </msg> <msg num="M204.0844" class="I" auditType="MS" opr="yes" count="no"> Recovery is now complete </msg> <msg num="M204.0845" class="E" auditType="ER" count="yes" retcodeb="4"> Updates not allowed during recovery </msg> <msg num="M204.0846" class="E" auditType="MS" count="no" retcodeb="4"> Group is in use </msg> <msg num="M204.0847" class="E" auditType="ER" count="yes" retcodeb="4"> Close group before deleting </msg> <msg num="M204.0848" class="I" auditType="MS" count="no"> Perm group deleted: <sub type="suffix" desc="name"/> </msg> <msg num="M204.0849" class="E" auditType="ER" count="yes" retcodeb="4"> Group not found: <sub type="suffix" desc="name"/> </msg> </messages>

See also

  • LoadMsgctl, which produces an XmlDoc with the same attributes for the <msg> elements.