FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Problemas com Date() em 10.3
Posts: 140
Joined: Tue Oct 11, 2005 02:36 AM
Problemas com Date() em 10.3
Posted: Tue Apr 27, 2010 03:31 PM

Ola amigos

Atualizei minha versão FWH 9.12 para a 10.3, e esta acontecendo o seguinte problema

Na versão 9.12
SET DATE BRITISH
? Date() -> "27/12/2010"

Na versão 10.3
SET DATE BRITISH
? Date() -> "27/12/2010 00:00:00.0" <<---- esta aparecendo o "00:00:00.0" ao final

Tem como solucionar isso

Tive que retornar para a FWH 9.12

Jackson Douglas C. Brito

Boa Vista - RR - Brasil

FWH 12.09 Last Build

xHarbour Free

UESTUDIO

SQLRDD
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problemas com Date() em 10.3
Posted: Wed Apr 28, 2010 11:28 AM
In \fwh\source\function\valblank.prg ( version FWH 10.3 )
for present line no 64
Code (fw): Select all Collapse
           if HB_IsDateTime( uVal )

substitute
Code (fw): Select all Collapse
           if ( uVal - Int( uVal ) ) > 0

The xHarbour function HB_IsDateTime( dVar ) should return .t. only when dVar has timepart also. But this function behaves differently in different versions of xHarbour. So, instead of relying on HB_IsDateTime() function of xHarbour, we need to have our own check if the date variable has timepart also or not.
Regards



G. N. Rao.

Hyderabad, India
Posts: 140
Joined: Tue Oct 11, 2005 02:36 AM
Re: Problemas com Date() em 10.3
Posted: Thu Apr 29, 2010 12:13 AM

Ola amigos

Obrigado RAO

Jackson Douglas C. Brito

Boa Vista - RR - Brasil

FWH 12.09 Last Build

xHarbour Free

UESTUDIO

SQLRDD

Continue the discussion