FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse reset incr.-seekstring on btn-action ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
xbrowse reset incr.-seekstring on btn-action ?
Posted: Wed May 06, 2015 05:54 PM
Hello,

I want to clear a xbrowse incr.-seekstring on button-action
and go to browser-top, but it doesn't work :
I can clear the seek but after that, it is not possible to seek again.
Going to browser-top doesn't work.

1. incr. seek
2. change values
3. save
4. reset seek-string ( on save-button or using the extra button )
5. browser go top

WITH OBJECT oBrw1
:lIncrFilter := .t.
:lSeekWild := .t.
cSeek := "", oBrw1:Refresh() }
END


REDEFINE SAY oBrw1:oSeek PROMPT oBrw1:cSeek ID 920 OF oDlg1 PIXEL FONT oFontSmall
oBrw1:Setcolor( 0, 16777215 )


the button-action

ACTION ( DBGOTOP(), oBrw1:Refresh(),;
oBrw1:cSeek := "", ;
oBrw1:Refresh() ) ;




any idea ?

best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xbrowse reset incr.-seekstring on btn-action ?
Posted: Fri May 08, 2015 02:34 AM
Code (fw): Select all Collapse
WITH OBJECT oBrw
   :Seek( "" )
   :lIncrFilter := .t.
   :lSeekWild := .t.
END
Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xbrowse reset incr.-seekstring on btn-action ?
Posted: Fri May 08, 2015 11:22 AM
Mr.Rao,

thank You very much for thr info.

I found XBIncflt.prg in /samples and added buttons.
It works like for the combos.

ACTION ( oBrw:Seek( "" ), oBrw:SetFocus() ) ;



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion