![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#6
|
|||
|
|||
|
Sigue sin funcionar
La instrucción: TFloatField(tblPedidos.Fields[1]).DisplayFormat := ',0.00';
Me sigue sin funcionar. Trabajo bajo Interbase y tengo el siguiente codigo: with tblPedidos,Sql do begin Pedidos.Close; Clear; TFloatField(tblPedidos.Fields[1]).DisplayFormat := '0.00'; Add('select nesting.pedido,avg(nesting.aprov) mediapedidos '); Add('from nesting,pedidos,clientes '); Add('where nesting.pedido=pedidos.pedido and pedidos.codcliente=clientes.codigo '); if EditPedido.Text<>'' then begin Add(' and nesting.pedido=' +QuotedStr(EditPedido.Text)); end; if EditCliente.Text<>'' then begin Add(' and clientes.nom=' + QuotedStr(EditCliente.Text)); end; if EditDesde.Text<>'' then begin Add(' and pedidos.f_ped>=' + QuotedStr(ModificarFecha(EditDesde.Text))); end; if EditHasta.Text<>'' then begin Add(' and pedidos.f_ped<=' + QuotedStr(ModificarFecha(EditHasta.Text))); end; Add('group by nesting.pedido '); Add('order by pedidos.f_ped'); AbreDbf([Pedidos]); end; |
|
|
|