Page 1 of 1

xbrowse problem

Posted: Mon Mar 10, 2008 3:31 pm
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.

Re: xbrowse problem

Posted: Mon Mar 10, 2008 6:52 pm
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!