Ver Mensaje Individual
  #2  
Antiguo 25-04-2007
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is online now
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.286
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Divide la línea del create y del Show en dos y entre medio pásale los parámetros que necesitas utilizando un par de propiedades.

Código Delphi [-]
  F := TForm.Create(...);
  F.Valor1 := 1;
  F.Valor2 := 2;
  F.ShowModal;

La otra opción es redefinir el constructor para poder ampliar los parámetros.

Código Delphi [-]
public
  Constructor Create(AOwner: TComponent; Valor1, Valor2:Integer); virtual;

...

En la implamentación llamas al inherirted y luego asignas los valores.
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita