Ok, I found that the result <b>{Dec </b> is coming from my tests. The Group I am using is named Decisiones (spanish) so the problem is that substr in not evaluating {Test.{$?page}$:date} . is only seeing the expression as Plain Text ( it should be {Tes for our porpuses.)<br>
<br>Anyway or ideas on making substr evaluate correctly ?<br><br>Best Regards,<br>Edwin<br><br><br><br><br><br><div class="gmail_quote">On Thu, Feb 4, 2010 at 8:25 PM, edwin marte <span dir="ltr"><<a href="mailto:edwin.marte@leidba.com">edwin.marte@leidba.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I have a set of pages with a couple of page text variables (PTVs) on them of the form yyyy-mm-dd . <br>
I need to grab year , month and day values from them to display in another page. <br><br>I have a page Test.0001 with (:date:2009-02-15:)<br>
<br>So if I point the browser to Main.Test?page=0001 (using httpvariables) and then write {Test.{$?page}$:date} on it I get <b>2009-02-15</b> (working)<br><br>then I try {(substr {Test.{$?page}$:date} 0 4)} and I get <b>{Dec </b>it breaks somehow , I was expecting to get 2009<b>.<br>
<br></b>Any pointers on how to make substr markup work the way I'm doing it ? Any reason why it breaks ?<br><br>Best Regards,<br><font color="#888888">Edwin<br>
</font></blockquote></div><br>