FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBrowse setarray
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
XBrowse setarray
Posted: Mon Dec 17, 2007 12:33 PM

When I change with (oBrw:setarray( array ) , oBrw:refresh()) the actual array with same structure, the headertext and oBrw:hide(column), etc. are loosing!
Is this normal?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
XBrowse setarray
Posted: Mon Dec 17, 2007 01:15 PM
SetArray method erases all the existing columns and adds all the the array columns again. So SetArray should be used only once in the beginning. Should not be used again.

If you want to substitute a similar array, you may
oBrw:aArrayData := aSubstitute
oBrw:Refresh()


If the following modification is made in the SetArray method of TXBrwose, it would be possible to use SetArray method to reassign array and also to have different column assignments. Proposed change in the method, if FWH agrees to:
METHOD SetArray( aData, ................. )

    <.......... code ....... >

    // requested change:
   if empty( ::aCols )
   // end or proposed change:
       // existing code
      ::aCols := {}
      for 1 := 1 to len( aData[ 1 ] )
      < ... existing code till the end ..>
   // req change
   endif
   // end if change

return nil // proposed return self
Regards



G. N. Rao.

Hyderabad, India
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
XBrowse setarray
Posted: Mon Dec 17, 2007 04:40 PM

Thanks!!!!!!!

Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion