FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour oBrw:Report , error on memo field
Posts: 166
Joined: Wed Aug 29, 2012 08:25 AM
oBrw:Report , error on memo field
Posted: Sun Feb 17, 2013 08: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 (fw): Select all Collapse
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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: oBrw:Report , error on memo field
Posted: Sun Feb 17, 2013 09: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 March-April 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: oBrw:Report , error on memo field
Posted: Mon Feb 18, 2013 03: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: oBrw:Report , error on memo field
Posted: Wed Feb 20, 2013 02: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

Continue the discussion