tDatepick : error in 12.02

tDatepick : error in 12.02

Postby Demont Brecht » Thu Mar 08, 2012 11:23 am

Hello,

Updating from fwh 8.10 to fwh 12.02 gives a error in tDtepick

Error description: Error BASE/1004 Class: 'NIL' has no exported method: EVAL
Args:
[ 1] = U
[ 2] = O TDATEPICK

Stack Calls
===========
Called from: => EVAL( 0 )
Called from: .\source\classes\TDTPICKE.PRG => (b)TDATEPICK:NEW( 94 )


The offending line in tDtepick.prg :

::bValid = { || If( ::lClosed, Eval( bValid, Self ), .F. ) }

In 8.10 : ::bValid = bValid

In the dialog i have no valid clausule :
@ 10,10 DTPICKER oGet[1] VAR Van OF oDlg PIXEL SIZE 45,10

It seems that the ::bValid is executed with ::lClosed=.T. (set in method Notify ?) , bValid is nil

Changing as :

# ifdef FRANKDEMONT
::bValid = { || If(::lClosed, IIF( Valtype(bValid)=="B" , Eval( bValid, Self ) , .T.) , .F. ) }
# else
::bValid = { || If( ::lClosed, Eval( bValid, Self ), .F. ) }
# endif

Seems to work

Frank



Frank
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am

Re: tDatepick : error in 12.02

Postby Antonio Linares » Thu Mar 08, 2012 12:11 pm

Frank,

Yes, we recently detected that bug in FWH 12.02 and we commented it here in the forums and proposed a similar solution like yours :-)

viewtopic.php?p=126788#p126788
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42086
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: tDatepick : error in 12.02

Postby mgsoft » Thu Mar 08, 2012 12:19 pm

Thank you.

Will you publish a revised build?.
Saludos,

Eduardo
User avatar
mgsoft
 
Posts: 422
Joined: Mon Aug 17, 2009 12:18 pm
Location: España

Re: tDatepick : error in 12.02

Postby Antonio Linares » Thu Mar 08, 2012 12:44 pm

Eduardo,

Not yet, unless other bugs arise
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42086
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

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