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