Is it possible to have a PICTURE for the time() like "00:00:00"
Regards Maurizio
PICTURE time
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
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
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. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
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
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