oBrw:Report , error on memo field

oBrw:Report , error on memo field

Postby Franklin Demont » Sun Feb 17, 2013 8:57 am

Hello,

A memo field contains an array , i got an error in rcolumn line 43

METHOD LineCount() INLINE If( ::lMemo, MLCount( Trim( Eval( ::aData[ 1 ] ) ), ::nSize ), Len( ::aData ) )

Eval( ::aData[ 1 ] ) returns an array

probably the codeblock ::aData[1] should return e text (i.e. "Array") In MakeRepCol (xbrowse) , or we have to assign bStrData our self

Assigning bStrData doesn't solve the problem while bEditValue is assigned to ::aData[1]
Code: Select all  Expand view

IF oCol:cDataType=="M"
  oCol:bStrData := {||IIF(VALTYPE(oCol:Value)=="A" , "{...}" , oCol:Value)}
END
 


In MakeRepCol :

if ( bData := oXCol:bEditValue ) == nil
bData := oXCol:bStrData
else
cPic := oXCol:cEditPicture
endif

Maybe is better :
if ( bData := oXCol:bStrData ) == nil
bData := oXCol:bEditValue
else
cPic := oXCol:cEditPicture
endif

This change solved the problem , but i don't understand why cpict is only assigned when bStrData (or bEditValue) is nil

Frank
test
Franklin Demont
 
Posts: 166
Joined: Wed Aug 29, 2012 8:25 am

Re: oBrw:Report , error on memo field

Postby Silvio.Falconi » Sun Feb 17, 2013 9:26 pm

there is also an error when we use supertitles on xbrowse
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: oBrw:Report , error on memo field

Postby nageswaragunupudi » Mon Feb 18, 2013 3:57 am

At present, memo fields containing arrays are not handled by the Report object. The enhancement is to be made in the Report class but not XBrowse.

This enhancement will be provided in the next version.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: oBrw:Report , error on memo field

Postby nageswaragunupudi » Wed Feb 20, 2013 2:08 pm

Printing of Arrays returned by Memo fields is provided in FWH 13.02
Even array values in a cell of xbrowse are shown as a list.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

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