Fórum Display format coluna DBGRid #470442
18/02/2014
0
Sidney Abreu
Curtir tópico
+ 0Posts
20/02/2014
Luiz
procedure TFrmControle.ClientDataSet1ALU_QUANTIDADEGetText(Sender: TField;
var Text: string; DisplayText: Boolean);
begin
if sender.AsString <> '' Then
begin
if ClientDataSet1ALU_UNIDADE.Text = 'UND' then
text:=FormatFloat('###0.0',sender.AsFloat)
else text:=FormatFloat('###0.000',sender.AsFloat);
end;
end;
Gostei + 0
20/02/2014
Sidney Abreu
Gostei + 0
20/02/2014
Luiz
Abraços!
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)