Hi,
This is my part of code. It uses array in xbrowse.
This is Ok for non-empty array but it gives an error empty arrays.
I have tried to change it like below that should works for only nArrayData is non-empty. But the result is the same. ERROR.
How can I handle this problem?
Thanks.
This is my part of code. It uses array in xbrowse.
if ! Empty( oCol := oBrw:oCol( "Colon1_1"+CRLF+"Colon1_2" ) )
oCol:bStrData := {|o|ALLTRIM(oBrw:aRow[3])+;
IIF(!EMPTY(oBrw:aRow[4])," "+NTRIM(oBrw:aRow[4]),"")+CRLF+ALLTRIM(oBrw:aRow[5])}
endifThis is Ok for non-empty array but it gives an error empty arrays.
I have tried to change it like below that should works for only nArrayData is non-empty. But the result is the same. ERROR.
if ! Empty( oCol := oBrw:oCol( "Colon1_1"+CRLF+"Colon1_2" ) )
oCol:bStrData := {|o|IIF(len(oBrw:aArrayData)>0,ALLTRIM(oBrw:aRow[3])+;
IIF(!EMPTY(oBrw:aRow[4])," "+NTRIM(oBrw:aRow[4]),"")+CRLF+ALLTRIM(oBrw:aRow[5]),"")}
endifHow can I handle this problem?
Thanks.
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.06

