FW 23.07 Xbrowse, oCol:Cargo is NIL

Post Reply
User avatar
frose
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg
Contact:

FW 23.07 Xbrowse, oCol:Cargo is NIL

Post 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.
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

Post 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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
frose
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg
Contact:

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

Post by frose »

The program crashes in xbrowse.prg, line 5813:

Code: Select all | Expand

      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

::Cargos    := nil
If the line is also commented out, the program runs as expected again
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

Post by nageswaragunupudi »

For now, please comment out

Code: Select all | Expand

::Cargos := nil
also, in addition to commenting out the entire 'elseif' block.
Regards

G. N. Rao.
Hyderabad, India
User avatar
frose
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg
Contact:

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

Post by frose »

yes, then the program runs as expected again :D
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
Post Reply