FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ERROR XBROWSE + Empty TARRAYDATA object
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
ERROR XBROWSE + Empty TARRAYDATA object
Posted: Fri Jul 03, 2020 12:32 PM
Hi Guys,
I Have a xBrowse where I'm showing the content of a TARRAYDATA object( oArr ). IF i do oArr:SetFilter(" status = 1") and there is no records in oArr with status = 1, there is happening the error bellow:
Code (fw): Select all Collapse
Error description: Error BASE/1132  Bound error: array access
   Args:
     [   1] = A   { ... }
     [   2] = N   0

Stack Calls
===========
Called from: TARRDATA.PRG => TARRAYDATA:BOOKMARK( 584 )
Called from: TARRDATA.PRG => (b)TARRAYDATA_SETXBROWSE( 1309 )
Called from: XBROWSE.PRG => TXBROWSE:SELECT( 8388 )
Called from: XBROWSE.PRG => TXBROWSE:SELECTROW( 8277 )
Called from: SGV2028.hrb => (b)TVFAPRG_DEFDIALOG( 184 )


Do you know why ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: ERROR XBROWSE + Empty TARRAYDATA object
Posted: Fri Jul 03, 2020 12:44 PM

We will look into this.

Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: ERROR XBROWSE + Empty TARRAYDATA object
Posted: Fri Jul 03, 2020 01:10 PM
The line numbers in your errorsys do not match with any recent version of TArrayData.
Please check if you are linking a much older version of the class.

We tested this sample and it is working fine here.
Code (fw): Select all Collapse
function TestArrayData

   local oData, aData, aStru

   aStru := { { "MONTH", "C", 4, 0 }, { "SALES", "N", 4, 0 }, { "COSTS", "N", 4, 0 }, { "STATUS", "N", 1, 0 } }
   aData := { { "JAN", 1000, 500, 0 }, { "FEB", 1200, 800, 0 } }

   oData := TArrayData():New( aData, aStru )

   XBROWSER oData SETUP oBrw:bRClicked := { |r,c,f,o| oData:SetFilter( "STATUS == 1" ), o:Refresh() }

return nil
Regards



G. N. Rao.

Hyderabad, India
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: ERROR XBROWSE + Empty TARRAYDATA object
Posted: Fri Jul 03, 2020 02:16 PM

My Fwh is May/2019. I'm not linking an older version on tArraydata

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: ERROR XBROWSE + Empty TARRAYDATA object
Posted: Fri Jul 03, 2020 02:54 PM

Just tested with 1905 and current versions.
We confirm bug in 1905.
Works well with current versions.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: ERROR XBROWSE + Empty TARRAYDATA object
Posted: Fri Jul 03, 2020 05:17 PM

Thanks

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil

Continue the discussion