weil:
Delphi-Quellcode:
SetLength(DieChecks, length(capts)); //capts ist ein array of string
for i := low(DieChecks) to High(DieChecks) do
begin
DieChecks[i] := TCheckbox.Create(self);
DieChecks[i].Top := 100 + i * 22;
DieChecks[i].Left := 10;
DieChecks[i].AutoSize := true; //Zeile 146
DieChecks[i].Caption := capts[i];
DieChecks[i].Visible := true;
InsertControl(DieChecks[i]);
end;
das meldet:
[Error] Unit1.pas(146): Undeclared identifier: 'AutoSize'