Updating xBrowse

Updating xBrowse

Postby byte-one » Wed Mar 21, 2012 2:48 pm

Hello!
I will update a xBrowse (adding data in a array) without changing the selected row. When i use ::setarray(aNewarray) the bar go to top.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Updating xBrowse

Postby ukoenig » Wed Mar 21, 2012 4:06 pm

Günther,

I think, that keeps the Row-position :

ACTION ( nBrwRow := oBrw:nRowSel, ; // save Row-pos
oBrw:setarray(aBRWSELECT), ;
aBrw:SetPos( nBrwRow ) ) // set Row-pos

Best Regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Updating xBrowse

Postby nageswaragunupudi » Thu Mar 22, 2012 2:58 pm

Suggested for replacing with a new Array

oBrw:aArrayData := aNewArray
oBrw:Refresh()
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 113 guests