TOTAL ON command

TOTAL ON command

Postby chiaiese » Wed Feb 08, 2006 10:43 pm

I found a bug in function __dbtotal (TOTAL ON ...) if the source file contains a memo field. I don't know why but the memo fields are cutted off from the target database causing a "data type error".

here the modification I made to the source code (dbtotal.prg) from xHarbour (version 0.99.50) at line 128

CurSelect := SELECT()
// r.c. mod: includes memo fields also - 08/02/2006
/*
aNewDbStruct := {}
Aeval( Dbstruct(), { | _1 | Iif( _1[ 2 ] == "M", NIL, Aadd( aNewDbStruct, _1 ) ) } )
IF ( Empty( aNewDbStruct ) )
RETURN ( .F. )
ENDIF
*/
aNewDbStruct := DbStruct()


Now it works for me. Hope it can be useful
Roberto
chiaiese
 
Posts: 84
Joined: Wed Feb 08, 2006 10:32 pm
Location: Roma, Italia

Re: TOTAL ON command

Postby Enrico Maria Giordano » Thu Feb 09, 2006 7:34 am

Can you try with latest xHarbour from CVS?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby chiaiese » Thu Feb 09, 2006 10:16 am

I see this is the latest official version from xHarbour.org, where can I download from CVS (what is CVS ?)
chiaiese
 
Posts: 84
Joined: Wed Feb 08, 2006 10:32 pm
Location: Roma, Italia

Postby Enrico Maria Giordano » Thu Feb 09, 2006 10:58 am

It would be easier if you post a little and self-contained sample that I can test with the latest xHarbour from CVS.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 55 guests