Page 1 of 1

Problemas com Date() em 10.3

Posted: Tue Apr 27, 2010 3:31 pm
by miragerr
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

Re: Problemas com Date() em 10.3

Posted: Wed Apr 28, 2010 11:28 am
by nageswaragunupudi
In \fwh\source\function\valblank.prg ( version FWH 10.3 )
for present line no 64

Code: Select all

           if HB_IsDateTime( uVal )
substitute

Code: Select all

           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.

Re: Problemas com Date() em 10.3

Posted: Thu Apr 29, 2010 12:13 am
by miragerr
Ola amigos

Obrigado RAO