Ver Mensaje Individual
  #6  
Antiguo 14-12-2008
Avatar de fjcg02
[fjcg02] fjcg02 is offline
Miembro Premium
 
Registrado: dic 2003
Ubicación: Zamudio
Posts: 1.418
Reputación: 24
fjcg02 Va camino a la fama
Cita:
Empezado por ajgomezlopez Ver Mensaje
He hecho lo que comentais y perfecto, pero me surge otro problema. Le he dado el formato al Query y el DBGrid me muestra los decimales, pero sin embargo, al hacer esto:
Label7.Caption := 'El importe total asciende a ' + floattostr(qtotal.Fields.FieldByName('total').AsFloat);
El label no me muesta el formato.
Deberás utilizar
Código Delphi [-]
Label7.Caption := 'El importe total asciende a ' + FormatFloat(', qtotal.Fields.FieldByName('total').DisplayFormat, qtotal.Fields.FieldByName('total').AsFloat);
Prueba a ver y ya nos dirás.

Saludos
__________________
Cuando los grillos cantan, es que es de noche - viejo proverbio chino -
Responder Con Cita