xbrowse problem

Post Reply
Wanderson
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

xbrowse problem

Post by Wanderson »

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.
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: xbrowse problem

Post by Richard Chidiak »

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
Post Reply