<div class="gmail_quote">2009/11/1 Hans <span dir="ltr">&lt;<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>

<p>if you need the PVs as you say, for db fields, </p>
<p>and want to use a single coord markup,</p>
<p>you could try this to set both properties:</p></div></blockquote><div>Thanks for that Hans.  I added the following based on your example to get it to parse (moved last quote closing PZZ line, added semi-colons and used $lat, $long variables to SetProperties - right?)<br>
<br>Markup(&#39;coord&#39;, &#39;directives&#39;,<br>  &quot;/\\(:coord\\s+(.*?)\\s+(.*?)\\s*:\\)/ei&quot;,<br>  &quot;PZZ(SetCoord(\$pagename, PSS(&#39;$1&#39;), PSS(&#39;$2&#39;)))&quot;);<br><br>function SetCoord($pagename, $lat, $long) {<br>
    SetProperty($pagename, &#39;latitude&#39;, $lat, &#39;, &#39;);<br>    SetProperty($pagename, &#39;longitude&#39;, $long, &#39;, &#39;);<br>} <br></div></div><br>I&#39;ve printed the parameters passed to SetCoord() and they are as I expect.<br>
<br>How can I see or access the values set by SetProperty().  I&#39;ve run ?action=diag and searched for latitude and printing {$:latitude}, {$Latitude} within the wiki page which has the (:coord:) directive.<br><br>Perhaps I need to add :<br>
<br>$FmtPV[&#39;$Latitude&#39;] = ...<br>$FmtPV[&#39;$Longitude&#39;] = ...<br><br>...lines within this function also?<br><br>