FW 23.07 Xbrowse, oCol:Cargo is NIL

FW 23.07 Xbrowse, oCol:Cargo is NIL

Postby frose » Sun Sep 10, 2023 8:01 am

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
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

Postby nageswaragunupudi » Sun Sep 10, 2023 9:59 am

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
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

Postby frose » Sun Sep 10, 2023 12:18 pm

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
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
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

Postby nageswaragunupudi » Sun Sep 10, 2023 1:15 pm

For now, please comment out
Code: Select all  Expand view
::Cargos := nil
also, in addition to commenting out the entire 'elseif' block.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: FW 23.07 Xbrowse, oCol:Cargo is NIL

Postby frose » Sun Sep 10, 2023 1:30 pm

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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 84 guests