FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour PICTURE time
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
PICTURE time
Posted: Wed Mar 14, 2007 02:52 PM

Is it possible to have a PICTURE for the time() like "00:00:00"

Regards Maurizio

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
PICTURE time
Posted: Wed Mar 14, 2007 03:24 PM

Have you tried "99:99:99" ?

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
PICTURE time
Posted: Wed Mar 14, 2007 03:56 PM

Maurizio,

I use "99:99" as a time picture. It works very well. The only thing is that you have to type the leading zero (like 01:35).

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
PICTURE time
Posted: Wed Mar 14, 2007 04:33 PM

Maurizio and Michel,

Might I suggest making a smart control that allows different forms of time entry then formats it when the user leaves the field.

135 becomes 01:35
1350 becomes 13:50
35 becomes 00:35

This way the use doesn't have to enter the colon or the leading zero and the data still ends up formatted properly.

And how about letting the user enter "now" and the program would automaticlly insert the current time. And maybe -10m for 10 minutes ago, or -2h for two hours ago.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion