Look at the displayFormat property of the Tfield that the TDBEDIt is bound
to.
Try HH:MM.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Patrick Dunford
Sent: Sunday, September 12, 1999 5:55 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Formatting time for TDBEdit control
I have a DBEdit that is connected to a TTimeField in a Paradox table with
field type Time. When an existing value in the field is edited, the
displayed format is hours:minutes:seconds.
Changing the DisplayFormat property of the TTimeField will change the format
when the field is displaying, but not when the field is being edited.
How do I get the field contents to show in hour:minutes format (no seconds)
when editing? Is this anything to do with the GetText or SetText event
handlers for the TTimeField?
============================================
Patrick Dunford, Christchurch, NZ
http://patrick.dunford.com/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz