Page 1 of 1

FW 23.07 Xbrowse, oCol:Cargo is NIL

PostPosted: Sun Sep 10, 2023 8:01 am
by frose
I use oCol:Cargo to save some parameters.
Since FW 23.07 it does not work anymore, maybe due to:
LinkList: Method Sort( [lAsc], [lRecurse], [nCol] ) enhanced with
three new parameters.
Param.3 nCol: Default 0: Sorts on nCol of Cargo Array

How can I find a workaround?
Suggestions are welcome.

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

PostPosted: Sun Sep 10, 2023 9:59 am
by nageswaragunupudi
If you are referring to Cargo of XBrowse's Column object, there is no change.
You can still use it for your own data.

Please let us know what kind of problem you are facing.

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

PostPosted: Sun Sep 10, 2023 12:18 pm
by frose
The program crashes in xbrowse.prg, line 5813:
Code: Select all  Expand view
     elseif ( n := AScan( aStruct, { |a| a[ 1 ] == Upper( IfNil( ::aCols[ nFor ]:Cargo, "" ) ) } ) ) > 0 
Because my Cargo is from type hash and not character.

If the entire elseif branch is commented out, the program will run, but then all oCol:Cargo will be deleted in xbrowse.prg, line 5823:
Code: Select all  Expand view
::Cargos    := nil
If the line is also commented out, the program runs as expected again

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

PostPosted: Sun Sep 10, 2023 1:15 pm
by nageswaragunupudi
For now, please comment out
Code: Select all  Expand view
::Cargos := nil
also, in addition to commenting out the entire 'elseif' block.

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

PostPosted: Sun Sep 10, 2023 1:30 pm
by frose
yes, then the program runs as expected again :D