Search found 22 matches: bfilter

Return to advanced search

Re: problem with dbsetfilter

DbSetFilter( <bFilter>, [<cFilter>] ) --> NIL Arguments <bFilter> A code block containing the filter expression. The expression must yield a logical value. <cFilter> The filter expression in form of a character ...
by FranciscoA
Sun Oct 18, 2015 6:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: problem with dbsetfilter
Replies: 9
Views: 1467

Re: Fulltextsearch (to Marco Boschi)

... fields, finding Robert Bosch in name OR cFilter := "Street" //fields, finding Robert Bosch only in streets OR etc. - built the filter: bFilter := &( "{ || WildMatch( " + ValToPrg( cPattern ) + ", " + cFilter + ", .F. ) }" ) - set the filter: MsgRun( ...
by frose
Tue Nov 09, 2010 8:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fulltextsearch (to Marco Boschi)
Replies: 36
Views: 9364

Re: XBROWSE : Error in method Delrepos

Otto, The first test is to see if there is a filter.    ! Empty( cFilter := ( ::cAlias )->( dbFilter() ) ) Then the test of eval( bFilter ) tests if the deleted record is NOT in the filter. I am not clear why this is needed. If there is a ...
by James Bott
Fri Mar 13, 2009 2:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE : Error in method Delrepos
Replies: 22
Views: 3568

Re: XBROWSE : Error in method Delrepos

Hello James, I am not clear about the line if ! ( ::cAlias )->( Eval( bFilter ) ). If I am right this sets the filter which dbFilter() reads before. Couldn’t I commend out this line? Thanks in advance and best regards, Otto METHOD DelRepos() CLASS TXBrowse ...
by Otto
Wed Mar 11, 2009 8:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE : Error in method Delrepos
Replies: 22
Views: 3568

XBROWSE : Error in method Delrepos

... "BEDIENDE->lActief" ) In Method Delrepos we have : elseif ! Empty( cFilter := ( ::cAlias )->( dbFilter() ) ) // cFilter is "BEDIENDE->lActief" bFilter := ( ::cAlias )->( &cFilter ) ...
by demont frank
Mon Oct 06, 2008 10:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE : Error in method Delrepos
Replies: 22
Views: 3568

Todavía sin solución

Eduardo, el error persiste, pude ver que el valor de bFilter es lógico y al dejar la función como está da error porque intenta evaluar algo que no es bloque de código, le hice esta modificación y me está funcionando aparentemente. METHOD DelRepos() ...
by riesrovi
Mon Sep 29, 2008 4:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: set filter con xbrowse da error
Replies: 9
Views: 1676

Parcialmente funcionó

Antonio, me funcionó de la forma que tu me sugieres, pero si utilizo macro en la lína de filtro me da el mismo error, pude notar que bfilter puede devolver una cadena de caracteres como valor lógico. A mi browse le hago un filtro luego de creado para filtrar los clientes de una base de datos ...
by riesrovi
Sun Sep 28, 2008 4:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: set filter con xbrowse da error
Replies: 9
Views: 1676

Ricardo, Prueba a aplicar el filtro asi: SET FILTER TO Sto->activo == .T. y a continuación haz: MsgInfo( DbFilter() ) para comprobar que la expresión es la escrita De paso comprueba que tengas esta línea en el método DelRepos() de la Clase TXBrowse y que no falte la "&": ...
by Antonio Linares
Sat Sep 27, 2008 9:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: set filter con xbrowse da error
Replies: 9
Views: 1676

Antonio, OK, I think I have a solution. bFilter was not actually a codeblock. This is from the method DelRepos(). Regards, James elseif ! Empty( cFilter := ( ::cAlias )->( dbFilter() ) ) //bFilter ...
by James Bott
Thu Sep 18, 2008 1:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oBrw:report() still need help..
Replies: 18
Views: 3024

... a row with lCanDelete mode DATA bFileLock // custom function for locking database (with your own message) DATA bGoToPos // scrollbar block DATA bFilter // a simple filter tool DATA bIconDraw, bIconText // icons drawing directives DATA bInit // code block to be evaluated on init DATA bLine, bSkip, ...
by Natter
Mon Sep 08, 2008 11:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bChange
Replies: 9
Views: 5470

xbrowse error fwh 8.08

... C:\CBATI32\xbrowse.PRG => TXBROWSE:DELREPOS(874) Called from: C:\CBATI32\xbrowse.PRG => TXBROWSE:REFRESH(838) This is the offending line bFilter := ( ::cAlias )->( &cFilter ) Hth Richard
by Richard Chidiak
Wed Sep 03, 2008 7:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse error fwh 8.08
Replies: 1
Views: 505

... to do the fiiltering, you filter the one you already have open. So change this code: select mete use mete set index to mete1 DBSETFILTER(&bFilter,cFilter) mete->(DBGOTOP()) To this: (::cAlias)->(dbsetfilter(&bFilter,cFilter)) ::gotop() There are other problems too. You have a ...
by James Bott
Tue Jan 22, 2008 7:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: filter database using tdata class
Replies: 1
Views: 603

... to issue a oBrw:gotop() since the database should already be there. I would try checking right after this code: select 4 use mete DBSETFILTER(&bFilter,cFilter) mete->(DBGOTOP()) msgInfo( [put field name here] ) If you are not at the top record here, then it has nothing to do with the browse. ...
by James Bott
Thu Mar 01, 2007 5:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: where to place gotop() in xbrowse
Replies: 2
Views: 967

rdd filter

I can not find that filter DBSETFILTER(&bFilter,cFilter) is applied to the database . Please can somebody explain why ? STATIC FUNCTION listmete( oWnd ) *-------------------------- local oDlg, oCol local oBrw local nfor,x,cFilter:="",bFilter:="" ...
by Ehab Samir Aziz
Sat Feb 24, 2007 6:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: rdd filter
Replies: 4
Views: 1449

Which is 'Set Filter' equavalent in Advantage RDD

... ALIAS customer INDEX ON state TAG state TO customer OrdSetFocus("state") cFiltCond := "customer->salary >10000 .AND. state = 'ME'" bFilter := "{||"+cFiltCond+"}" * Method 1 SET FILTER TO customer->salary >10000 .AND. state = 'ME' GO TOP BROWSE() DbSetFilter() DbGoTop() * Method ...
by RAMESHBABU
Mon May 01, 2006 1:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Which is 'Set Filter' equavalent in Advantage RDD
Replies: 0
Views: 567
Next

Return to advanced search