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