FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse problem
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
xbrowse problem
Posted: Mon Mar 10, 2008 03: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.

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: xbrowse problem
Posted: Mon Mar 10, 2008 06: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

Continue the discussion