How to relate a TCurrencyField and a TMaskEdit?


2003-11-08 10:15:48 PM
delphi80
I am in Brazil. My Paradox db file stores a Currency Field as 'R$1.234,56'
(at least this is how I see it in Database Desktop).
So, I defined the EditMask property of a TMaskEdit as '\R\$999\.999\,00;1;_'
.
On trying to read that field to a MaskEdit, neither of these did the job:
MaskEdit1.Text :=
FloatToStrF(Table1.FieldByName('Value').AsCurrency,ffCurrency,18,2);
MaskEdit1.Text := Table1.FieldByName('Value').AsString;
Writing is the same problem. I need to transform that value to '1234,56'
before assigning it to the field.
What can I do?
Thanks,
Marcio