Ver Mensaje Individual
  #2  
Antiguo 12-07-2005
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.278
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
Revisa en la ayuda "parámetros opcionales".
Defínele un valor por defecto en la cabecera y si no lo pones, cogerá el valor por defecto. Lo único que debes tener en cuenta es que los parámetros con valores por defecto deben ir al final.

Código Delphi [-]
  Procedimiento(x1:integer;x3:string;x2:integer=0);
  begin
  --
  end;

Ahora podrás llamarlo como:

Código Delphi [-]
   Procedimiento(var1,var3);
   // es equivalente a:
   Procedimiento(var1,var3, 0);
__________________
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