PICTURE time

PICTURE time

Postby Maurizio » Wed Mar 14, 2007 2:52 pm

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

Regards Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby James Bott » Wed Mar 14, 2007 3:24 pm

Have you tried "99:99:99" ?
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby driessen » Wed Mar 14, 2007 3: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby James Bott » Wed Mar 14, 2007 4: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 64 guests

cron