<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->

<head>

<title>pnvarnames</title>

<!--(Meta)==========================================================-->

<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=756>
<meta name=layout-width content=916>
<meta name=date content="05 13, 2002 11:05:52 AM">


<!--(Links)=========================================================-->

<link rel=StyleSheet href=default.css>



<!--(Style Sheet)===================================================-->

<style type="text/css">
<!--

body {
	border-left-style: none;
	border-right-style: none;
	border-top-style: none;
	border-bottom-style: none;
}

-->
</style>


</head>

<!--(Body)==========================================================-->


<body>

<h1>pnvarnames</h1>

<h2>Purpose</h2>

<p>Fetch all a node's variable names into an array (i.e., a multi-valued 
 variable).</p>

<h2>Syntax</h2>

<p style="line-height: normal;
			margin-bottom: 14pt;
			margin-top: 14pt;
			x-text-tab-stops: repeat 1in;
			white-space: nowrap;
			font-family: monospace;
			font-size: 10pt;">returnedArray = pnvarnames(aPnode)</p>

<p style="margin-left: 40px;
			line-height: normal;
			margin-bottom: 14pt;
			margin-top: 14pt;
			x-text-tab-stops: repeat 1in;
			white-space: nowrap;
			font-family: monospace;
			font-size: 10pt;">returnedArray - type: array of strings<br>
aPnode - type: pnode<br>&nbsp;</p>

<h2>Returns</h2>

<h2>Remarks</h2>

<p>A quick way to get a node's variables.</p>

<h2>Example</h2>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;">&nbsp;</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"># Print out variable name followed by 
 its values, for each variable in each _TEXTZONE node.</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;">@POST</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->&quot;output.txt&quot; 
 &lt;&lt; N(&quot;$text&quot;,1) &lt;&lt; &quot;\n&quot;;</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->S(&quot;names&quot;) 
 = pnvarnames(N(1));</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->&quot;output.txt&quot; 
 &lt;&lt; S(&quot;names&quot;) &lt;&lt; &quot;\n&quot;;</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->while 
 (S(&quot;names&quot;)[++G(&quot;ii&quot;)]) <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}--># 
 Traverse node's variables.</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->{</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->&quot;output.txt&quot; 
 &lt;&lt; S(&quot;names&quot;)[ G(&quot;ii&quot;) ] &lt;&lt; &quot;: &quot;;</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->G(&quot;val&quot;) 
 = pnvar(N(1),S(&quot;names&quot;)[ G(&quot;ii&quot;) ]);</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><span style="font-family: monospace;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->&quot;output.txt&quot; 
 &lt;&lt; G(&quot;val&quot;) &lt;&lt; &quot;\n&quot;; <!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}--># 
 Print variable's values.</span></p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->}</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;"><!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}-->&quot;output.txt&quot; 
 &lt;&lt; &quot;\n&quot;;</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;">@RULES</p>

<p style="font-family: monospace;
			margin-top: 0.5pt;
			margin-bottom: 0.5pt;">_xNIL &lt;- _TEXTZONE @@</p>

<h2>See Also</h2>

</body>

</html>
