refresh a filtered TXbrowse

refresh a filtered TXbrowse

Postby Ehab Samir Aziz » Fri May 05, 2006 6:11 pm

Listbox is refreshed after set filter command by :
Code: Select all  Expand view

oLbx:upstable()         
oLbx:Refresh()



TXBROWSE is not refreshed after filter command by the same way :
Code: Select all  Expand view
ACTIVATE DIALOG oDlgn ON INIT (oBrw:SetSize( 800,
600 ),oBrw:Refresh())
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby ShumingWang » Sat May 06, 2006 1:43 am

Try refresh(.t.)

Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Ehab Samir Aziz » Sat May 06, 2006 11:50 am

refresh(.t.) does not do any difference . My problem is :
Only the first Record appeared in the Txbrowse does not belong to the condition of set filter and when I do through the records using the cursor the non-belong record disappeared .
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Enrico Maria Giordano » Sat May 06, 2006 4:42 pm

Try GO TOP just after SET FILTER command.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ehab Samir Aziz » Sun May 07, 2006 7:20 pm

I already aware of that point but no effects
Code: Select all  Expand view
SELECT 4
use mete
SET index TO mete2
DBSETFILTER(&bFilter,cFilter)
4->(DBGOTOP())
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby tnhoe » Mon May 08, 2006 2:11 am

Try this :-

select('youralias')
set filter to &cYourFilter
go top

oLbx:gotop()
oLbx:upstable()
oLbx:refresh()
Regards

Hoe, email: easywin3@yahoo.com
User avatar
tnhoe
 
Posts: 83
Joined: Tue Nov 08, 2005 11:09 am
Location: Malaysia

Postby Ehab Samir Aziz » Wed May 10, 2006 4:11 pm

Sorry I using Txbrowse so I am using RDD server . so no syntax for set filter but my code must be the following :
Code: Select all  Expand view

SELECT 4
use mete
SET index TO mete2
DBSETFILTER(&bFilter,cFilter)
4->(DBGOTOP())

Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests