<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/7/31 Hans-Peter Diettrich <span dir="ltr"><<a href="mailto:DrDiettrich1@aol.com" target="_blank">DrDiettrich1@aol.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Terry A. Haimann schrieb:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am sure this is a dumb ?, but I want a subroutine that will change all<br>
of the components of a form to Enabled := False.<br>
<br>
How do I do this?<br>
</blockquote>
<br></div>
This code disables all components owned by form:<br>
<br>
for i := 0 to form.Components.Count - 1 do<br>
  form.Components[i].Enabled := False;<br>
<br>
Untested, eventually Components.Count has to be replaced by ComponentCount.<br>
<br>
DoDi</blockquote></div><br></div><div class="gmail_extra">Previous answers made me wonder: are you sure you meant "Component", not "Control"? If the form contains non-visual components, this could change the result.<br clear="all">

</div><div class="gmail_extra"><br>-- <br>Frederic Da Vitoria<br>(davitof)<br><br>Membre de l'April - « promouvoir et défendre le logiciel libre » - <a href="http://www.april.org" target="_blank">http://www.april.org</a><br>


</div></div>