Hi,
Is there an easy way to loop through an array of controls (user specified, not every control on the form) and disable them?
At the moment I'm just disable/enabling them one by one e.g.
ctrl1.enabled := false;
ctrl2.enabled := false;
....
ctrl22.enabled := false;
etc.
Is there a way to pass, either to a function or otherwise to disable an array of them so it could be done in significantly less lines? The code's a bit ugly the way it is at the moment.
Thanks in advance for any solutions.