I have tried different combinations of an EditMask to attempt to format a currency value in a TMaskEdit control. I have entries up to $999,999.99. I want to allow optional values .
for instance I tried this mask:
$##,###,##0.00;1;
Which to me should save literals and only require a value with one position before the decimal and 2. Unfortunately, typing into the mask everything is left justified and all commas are saved and spaces are not ignored.
Is there a simple mask I can use to allow me to just type in a value, say 1234.55 and have it displayed in the MaskEdit as $1,234.55 ?
for instance I tried this mask:
$##,###,##0.00;1;
Which to me should save literals and only require a value with one position before the decimal and 2. Unfortunately, typing into the mask everything is left justified and all commas are saved and spaces are not ignored.
Is there a simple mask I can use to allow me to just type in a value, say 1234.55 and have it displayed in the MaskEdit as $1,234.55 ?