FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bug in xbrowse using an array and sort
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Bug in xbrowse using an array and sort
Posted: Sun Dec 26, 2010 04:14 PM

Hi,
this last FWH version has a bug into the xBrowse class when you browse an array with a column using the SORT clause.

Application

Path and name: K:\pigc\PIGCSQL.Exe (32 bits)
Size: 9,056,768 bytes
Time from start: 0 hours 0 mins 1 secs
Error occurred at: 26/12/10, 17:08:34
Error description: Error DBCMD/2001 Workarea not in use: ORDBAGNAME

Stack Calls

Called from: => ORDBAGNAME(0)
Called from: K:\pigc\ADDON32\UPDATED2\xbrowse.prg => TXBROWSE:ADDCOLUMN(5320)

I temporary solved removing line 5320 from the xbrowse class

  • oCol:cOrdBag := ( ::cAlias )->( OrdBagName( ncOrder ) )
Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug in xbrowse using an array and sort
Posted: Mon Dec 27, 2010 04:05 PM
This is the fix:
Code (fw): Select all Collapse
      if ::nDataType == DATATYPE_RDD .and. ! Empty( ::cAlias ) .and. SELECT( ::nAlias ) > 0
         oCol:cOrdBag    := ( ::cAlias )->( OrdBagName( ncOrder ) )
      endif
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion