Ver Mensaje Individual
  #2  
Antiguo 04-08-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.293
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
NOTA: Si colocas código delphi puedes utilizar los TAG´s de Delphi (Delphi y /Delphi entre corchetes).

Código Delphi [-]
 
 // Suponiendo que el control se llama numero
 procedure TFrm_Consulta_Exp.NumeroChange(Sender: TObject); 
 const 
  STRSQL = 'select * from Maestro_Expediente'; 
  STRORDER = ' ORDER BY Numero_Expediente'; 
 begin 
    Qry_busca_Expediente.Close; 
    if (Numero.Text = '') then begin 
      Qry_busca_Expediente.SQL.Text := STRSQL; 
    end 
    else begin 
      Qry_busca_Expediente.SQL.Text := STRSQL + 
         ' WHERE Numero_Expediente = ' + StrToInt(Numero.Text) + 
         STRORDER; 
    end; 
    qry_busca_Expediente.Open; 
 end;
__________________
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