Ver Mensaje Individual
  #3  
Antiguo 21-07-2007
Avatar de ariefez
ariefez ariefez is offline
Miembro
 
Registrado: sep 2005
Ubicación: Perú - Lima
Posts: 63
Reputación: 19
ariefez Va por buen camino
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
Responder Con Cita