FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse EDIT_TIME
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
xBrowse EDIT_TIME
Posted: Wed Oct 24, 2012 07:28 AM

How to display hh:mm column in xbrowse and not hh:mm:ss?

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: xBrowse EDIT_TIME
Posted: Wed Oct 24, 2012 07:39 AM

oCol:bStrData := {|| SubStr(oBrw:aCols[2]:Value(),1,5) }

as display.. but when editing time format is hh:mm:ss even if I changed Set( _SET_TIMEFORMAT, "hh:mm")

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: xBrowse EDIT_TIME
Posted: Wed Oct 24, 2012 11:18 AM

perhpas you must use a text field "hh:mm:ss"

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: xBrowse EDIT_TIME
Posted: Thu Oct 25, 2012 12:05 AM

Thanks for the reply.

Since it is a string format, I dont need to validate it as valid time.. I just trim and ignore the seconds.

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15

Continue the discussion