Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Currency Formatting and EditMasks

Status
Not open for further replies.

billk56

Programmer
Jul 19, 2005
1
US
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 ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top