Hi everibody!
I need to obtain all names of the component in a form, for various use.
I try to do so, for put them in a memo
memo2.clear;
for i:=0 to frmcartellini.ComponentCount-1 do // chi è il 4 componente?
begin
memo2.lines.add(frmcartellini.controls.name);
end;
but at the 4 index I obtain a bound error (components are more of 1 hundred), panel, query, tsheet, tedit, combobox and so on.
Where is the trouble?
I need all name so I can made a routine in which, for example, I can enable or disable all components whitout write all their name in the code...
My Lazarus 0.9.29 svn 27658 12/10/2010
Thank to everybody