PICTURE time

Post Reply
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

PICTURE time

Post by Maurizio »

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

Regards Maurizio
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Have you tried "99:99:99" ?
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

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. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
Post Reply