European currency notation input problem with DBGrid.
Posted on 1998-12-03
I use Delphi 1.0 for database apps.
Our country uses the european
currency notation so the number like
US$ 1,000.00 will show as US$ 1.000,00.
In TFloatField, the display format
",0.00" is used and it displayed without
problem in our Portuguese Windows 98.
When using the DBGrid, I could not input
the "," as point decimal. I tried to use
the MaskEdit property but it did not work
too. Besides that the delphi will let the
user to type various "," s so the delphi
will generate an exception in case the
user typed the comma 2 times like "45,,50"
instead of "45,50". I don't have problem
with DBEdit, because I download a freeware
DBEdit component to solve this problem.