Tabsheet componentCount returning always Zero ?
Posted on 2006-06-18
when I Execute the following:
procedure TForm1.ClearForm(AForm : TsuiTabSheet);
var i : Integer;
For i := 0 to AForm.ComponentCount -1 do
if (AForm.Components[i] is TcxTextEdit) then
(AForm.Components[i] as tcxTextEdit).Text := '';
The TsuiTabSheet is a Tabsheet from a Page Control Component... since it was not working... I've checked the value returned
by AForm.ComponentCount and it is zero.
I would like to check all components on the The Tabsheet page and if they are TextEdit, clear their content...