No se porque sale ese error pero ami si q me corre esa prsion de codigo, esta es la forma en la q corre
Código Delphi
[-]procedure TForm2.FormCreate(Sender: TObject);
var
PCInformacion: TPageControl;
Hoja1:TTabSheet;
begin
PCInformacion:= TPageControl.Create(Self);
with PCInformacion do
begin
Parent:= Self;
Align:= AlClient;
end;
Hoja1:=TTabSheet.Create(PCInformacion);
with Hoja1 do
begin
PageControl:= PCInformacion;
Caption:= 'Hola Mundo';
DBGDatos.Parent:= Hoja1;
end;
end;
como no mencionas de q tipo es Hoja1 supuse q era TTabSheet