I'll start with point 2... use TDateTimePicker to display/deal with date/time fields
As for point 1, you have DisplayFormat and EditFormat for each field attached to that control, #,##0.00 would display something like 1,234.00 or 0.00 as for EditFormat you have to be careful not to use thousands separator (, ) in the format... Hope this is helps Vahan -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of soonhuat ong Sent: Monday, June 13, 2005 8:17 AM To: [email protected] Subject: [delphi-en] 2 decimal points , time textedit problem :( This is probably as easy as ABC, but these 2 questions here kinda beat me .. 1) I have a TDBEdit component (bind it to certain field with float data types). What should i do in order to make that TDBEdit component always display 2 decimal points value (No matter the value is extract from the database, or it is user's entry). 2) I have a Ttextedit component on my form to display the time . SO i need to check the validation of the time before i post it. What should i do? For example: 10:45 - true 10:61 - false (61 minutes are not allowed - only up to 59) One more thing is, instead of key in the "colon" manually, how to make the colon appearautomatically ? For example: to key in the value 10:45, what i want is the user need only to type in : - "1" then "0" then "4" then "5" on the textedit, instead of "1" then "0" then ":" then "4" then "5" Thanks. --------------------------------- Discover Yahoo! Find restaurants, movies, travel & more fun for the weekend. Check it out! [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] ---------------------------------------------------------------------------- ---- Yahoo! Groups Links a.. To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

