<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>24 Oct 2019 09:31:11 Z</lastBuildDate><pubDate>22 Oct 2019 10:17:59 Z</pubDate><description>Hi ,&#13;
&#13;
I am having a struggle with Control Templates and wonder if anyone can see what I am doing wrong.&#13;
&#13;
I would like to be able to set a property of the template from inside a local procedure belonging to that template but this seems impossible. I can set properties of the component controls but not the template itself. For example in the template TPLC_MyTemplate this local procedure works:&#13;
&#13;
PROCEDURE ShowEditField()&#13;
&#13;
EDT_Field..Visible = true&#13;
&#13;
However this gives an error at compile time even though the type-ahead prompts in the editor suggests it is valid:&#13;
&#13;
PROCEDURE ShowControl()&#13;
TPLC_MyTemplate..Visible = true&#13;
&#13;
I have also tried &#13;
PROCEDURE ShowControl()&#13;
Self..Visible = true&#13;
&#13;
but get the same error. Am I missing something obvious here or is this a limitation of control templates?&#13;
&#13;
Thanks&#13;
&#13;
Paul</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template/read.awp</link><title>How to set property of a template control from inside template code.</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>PaulGruet</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template-67340/read.awp</comments><pubDate>24 Oct 2019 09:31:11 Z</pubDate><description>thank you that's just what I was looking for &#13;
Paul</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template-67340/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template-67340/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template/read.awp">How to set property of a template control from inside template code.</source><title>Re: How to set property of a template control from inside template code.</title></item><item><author>BALTASAR</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template-67339/read.awp</comments><pubDate>23 Oct 2019 14:39:16 Z</pubDate><description>I think I know what you mean:&#13;
&#13;
you want to change template properties from within controls of this template, so you must make …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template-67339/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template-67339/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67337-how-set-property-template-control-from-inside-template/read.awp">How to set property of a template control from inside template code.</source><title>Re: How to set property of a template control from inside template code.</title></item></channel></rss>
