Bug in xbrowse using an array and sort

Bug in xbrowse using an array and sort

Postby Marco Turco » Sun Dec 26, 2010 4: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Bug in xbrowse using an array and sort

Postby nageswaragunupudi » Mon Dec 27, 2010 4:05 pm

This is the fix:
Code: Select all  Expand view
     if ::nDataType == DATATYPE_RDD .and. ! Empty( ::cAlias ) .and. SELECT( ::nAlias ) > 0
         oCol:cOrdBag    := ( ::cAlias )->( OrdBagName( ncOrder ) )
      endif
 
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 98 guests