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

<html>

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

<head>

<title>Block Template</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=1099>
<meta name=layout-width content=623>
<meta name=date content="01 7, 2003 2:36:42 PM">


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

<link rel="StyleSheet" href="../../css/main_styles.css">



</head>

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


<body class="bodydocs" onLoad="top.pageLoader()" bgcolor="#FFFFFF">


<p class=EndLine>&nbsp;</p>

<h1>Block Template</h1>

<h5 style="margin-left: 40px;"><span style="font-style: italic;">Element 
 Name</span></h5>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span style="font-weight: bold;">BLOCK_TEMPLATE 
 </span><span style="font-style: italic;"><span style="font-weight: bold;">name</span></span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span style="font-weight: bold;">{</span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 80px;"><span style="font-weight: bold;"><span style="font-style: italic;">@ 
 Address_Name </span>[ <span style="font-style: italic;">Address_Expression 
 </span>] @</span><span style="font-weight: bold;"><br>
@ \nows @</span><span style="font-weight: bold;"><br>
@ \opt @</span><span style="font-weight: bold;"><br>
@ \ldr=string1 @</span><span style="font-weight: bold;"><br>
@ \trlr=string@</span><span style="font-weight: bold;"><span style="font-style: italic;"><br>
@ &quot;string&quot; @</span></span></p>

<p style="margin-left: 120px;
			line-height: normal;
			margin-bottom: 14pt;
			margin-top: 14pt;
			x-text-tab-stops: repeat 1in;
			white-space: nowrap;
			font-size: smaller;
			font-family: monospace;"><span style="font-weight: bold;">} </span></p>

<h5 style="margin-left: 40px;"><span style="font-style: italic;">Description</span></h5>

<p CLASS=ListBulletTxt>Instructs Post to define a Block Template identified 
 by the string <span style="font-weight: bold;"><span style="font-style: italic;">name</span></span><span 
 style="font-style: italic;">. </span>Block Templates are used by the event 
 handlers to request formatted output. (see MOM_do_template in event handler 
 example).</p>

<h5 style="margin-left: 40px;"><span style="font-style: italic;">Parameter 
 Definitions</span></h5>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span><span style="font-weight: bold;">Address_Name</span></span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;">The name of a previously defined Address. 
 The attributes of that Address determine the format of the output for 
 this Block Template member.</p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span><span style="font-weight: bold;">Address_Expression 
 (ae)</span></span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;">A TCL expression whose value should be sent 
 to the output. This expression can be any valid TCL expression. Post will 
 ask TCL to evaluate this expression and then output its value using the 
 format indicated by the Address Format attribute.</p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span><span style="font-weight: bold;">\nows</span></span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;">An optional switch. If present then the 
 value is <span style="font-style: italic;">not</span> followed by the 
 WORD_SEPARATOR in the generated output. If not present then the value 
 is followed by the WORD_SEPARATOR in the generated output.</p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span><span style="font-weight: bold;">\opt</span></span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;">An optional switch. If present and the ae 
 can not be evaluated then ignore this address. If it is not present and 
 the ae cannot be evaluated an error is issued.</p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span><span style="font-weight: bold;">\ldr=string1</span></span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;">An optional switch. If present then precede 
 this address with <span style="font-weight: bold;">string1</span> in this 
 Block Template (not in every template in which the address appears; use 
 <span style="font-weight: bold;">LEADER</span> in the address definition 
 for that).</p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span><span style="font-weight: bold;">\trlr=string1</span></span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;">An optional switch. If present then follow 
 this address with <span style="font-weight: bold;">string1</span> in this 
 Block Template (not in every template in which the address appears; use 
 <span style="font-weight: bold;">TRAILER</span> in the address definition 
 for that).</p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;"><span><span style="font-weight: bold;">&quot;</span></span><span 
 style="font-style: italic;"><span><span style="font-weight: bold;">string&quot;</span></span></span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;">A string to output literally. This string 
 follows the octal rule. This string may also be qualified with switches.</p>

<p CLASS=ListBulletTxt>There can be any number of <span style="font-weight: bold;"><span 
 style="font-style: italic;">Address</span></span><span style="font-style: italic;"> 
 </span>members and any number of <span style="font-weight: bold;"><span 
 style="font-style: italic;">string</span></span> members in a Block Template. 
 They may appear in any order.</p>

<p CLASS=ListBulletTxt><span style="font-style: italic;">Example</span></p>

<p CLASS=ListBulletTxt
	style="margin-left: 40px;">BLOCK_TEMPLATE rapid_xy {</p>

<p CLASS=ListBulletTxt
	style="margin-left: 80px;">cutcom_g[$mom_cutcom_code]\opt</p>

<p CLASS=ListBulletTxt
	style="margin-left: 80px;">motion_g[0]</p>

<p CLASS=ListBulletTxt
	style="margin-left: 80px;">X[$mom_pos(0)]</p>

<p CLASS=ListBulletTxt
	style="margin-left: 80px;">Y[$mom_pos(1)]</p>

<p CLASS=ListBulletTxt
	style="margin-left: 80px;">cutcom_register[$mom_cutcom_adjust_register]\opt</p>

<p CLASS=ListBulletTxt
	style="margin-left: 80px; margin-bottom: 0;">} </p>

<p CLASS=EndLine>&nbsp;</p>

<p CLASS=blank>&nbsp;</p>

</body>

</html>
