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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set a mask for Float values? 1

Status
Not open for further replies.

Pietjeparasietje

Programmer
Jun 13, 2005
55
NL
Hi,

I'm having the following problem. I want to set a mask for my amount values, like this : "1,200.00" which is twelve hundred. Right now I'm using the following Maks: " #,#####;0;_ "

This gives me 2 problems.
1. When a amount is smaller than 1000 it wil display it like this 5,00.00 .

2. I do not want to display the "," when a field is empty, it does right now.

Does anyone know how to fix this?
Thnx,
Peter
 
Thanks gcaramia!! That's a very helpfull component.

Btw, do you maybe also have a solution for a time mask.
Right now i'm using the following mask:
" !90:00 >LL;1;_ "

But now its not possible to enter 9:30 am because he will display this as 93:0.. You'll have to do it like this 09:30 am Is there maybe also a component that solves this problem?

Thanks again,

Peter
 
Use DateTimePicker (from Win32 palette).
set:
Kind := dtkTime
format := HH:mm
DateMode := dmUpDown

I hope this is what you are looking for

Giovanni Caramia

 
Stupid, should have figured that one out myself, but thanks anyway for youre help..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top