Ver Mensaje Individual
  #2  
Antiguo 29-07-2008
Avatar de poliburro
[poliburro] poliburro is offline
Miembro Premium
 
Registrado: ago 2004
Ubicación: México D.F
Posts: 3.068
Reputación: 23
poliburro Va por buen camino
Código Delphi [-]
 
With modifventa do 
  Begin
     // Si cod_venta es alfanumérico debes agregar comilla doble
    SQL. text := 'update venta set procesado=1 where cod_venta='''+ventas.Fields[0].AsString + '''';
   ExecSQL;
   f_menu.conex.Commit;
try 
   letras.Numero:=ventas.Fields[5].AsFloat;
   letras.Moneda:='Guaranies'; 
   letras.Centavos:='Centimos'; 
   letras.Masculino:=true;
   texto:=letras.AsString; 
finally 
   letras.Free; 
end ;
__________________
Conoce mi blog http://www.edgartec.com
Responder Con Cita