Ver Mensaje Individual
  #2  
Antiguo 08-04-2008
[egostar] egostar is offline
Registrado
 
Registrado: feb 2006
Posts: 6.557
Reputación: 25
egostar Va camino a la fama
Hola georgejg

Se me hace curioso este tratamientro

Código Delphi [-]
if Pos('%',Edit1.Text) <> 0 then begin //
Memo1.Text:=(' select CODIGO_ARTICULO,CANTIDAD,PORCENTAJE,PESO,FECHA,HORA'+
                     ' from ARTICULO B, DETALLE C '+
                     ' WHERE B.CONSECUTIVO_ART = C.CONSECUTIVO_ART '+
                     ' AND C.HORA = ' + QuotedStr(Edit1.Text) +
                     ' AND C.FECHA = ' + QuotedStr(DateToStr(DataTimePicker1.Date)));
 end
else
 begin
Memo1.Text:=(' select CODIGO_ARTICULO,CANTIDAD,PORCENTAJE,PESO,FECHA,HORA'+ 
                    ' from ARTICULO B, DETALLE C '+
                    ' WHERE B.CONSECUTIVO_ART = C.CONSECUTIVO_ART '+
                    ' AND C.HORA = ' + QuotedStr(Edit1.Text) +
                    ' AND C.FECHA = ' + QuotedStr(DateToStr(DataTimePicker1.Date)));
end;

Cual es la diferencia que encuentres el signo % si haces lo mismo lo tenga o no?

Salud OS
__________________
"La forma de empezar es dejar de hablar y empezar a hacerlo." - Walt Disney
Responder Con Cita