xbrowse problem

xbrowse problem

Postby Wanderson » Mon Mar 10, 2008 3:31 pm

hello! xbrowse fwh0802 oBrw:Refresh() not work. After oBrw:Delete() if i use oBrw:Refresh() the record deleted still display in browse.
If i use oBrw:Delete(),oBrw:GoTop() and oBrw:Refresh() work great.

Thanks.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: xbrowse problem

Postby Richard Chidiak » Mon Mar 10, 2008 6:52 pm

Wanderson

Add this definition to your browser
oBrw:bBookMark := {| n | iif( n == nil,(MYALIAS)->(RecNo()), (MYALIAS)->(dbgoto(n)) ) }


When you delete add the folowing

IF OBRW # NIL
OBRW:skip(1)
OBRW:skip(0)
IF oBrw:eof()
OBRW:skip(-1)
OBRW:skip(0)
ENDIF
ENDIF
oBrw:refresh()
oBrw:SETFOCUS()

HTH

Richard!
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests