FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour testxbrw filter
Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
testxbrw filter
Posted: Thu Mar 16, 2006 08:04 AM

I am trying to update the testxbrw.prg to fullfill my needs as below . It does not work ???

select 1
USE METE
index on dtoc(me_date)
go top
set filter to 1->me_serial="9855564"
// USE CUSTOMER NEW

Posts: 270
Joined: Fri Nov 11, 2005 07:39 PM
Example of filter
Posted: Fri Mar 17, 2006 02:33 PM

Ehab:

You can used this sample code:

FUNCTION Incremental( oWnd )

local oChild, oBrw

DEFINE WINDOW oChild TITLE "Incremental seek " MDICHILD OF oWnd

oBrw := TXBrowse():New( oChild )
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw:nColDividerStyle := LINESTYLE_INSET
oBrw:nRowDividerStyle := LINESTYLE_INSET
oBrw:bSeek := { |c| DbSeek( Upper( c ) ) }

oBrw:SetRDD()
oBrw:CreateFromCode()

oChild:oClient := oBrw

ACTIVATE WINDOW oChild ON INIT oBrw:SetFocus()

RETURN NIL

Juan
==> Pasando a FWH16.04 + Harbour32 + BCC70 + PellesC
=> Abandonando FWH 13.7 + xHarbour + BCC582
http://www.mitaller.cl
Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
testxbrw filter
Posted: Tue Mar 28, 2006 05:32 PM

Is that code will result to access one record as focused by dbseek ?

Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
testxbrw filter
Posted: Tue Mar 28, 2006 05:41 PM

Even that code does not focus on seeking x value ?!!!!

Posts: 48
Joined: Tue Dec 27, 2005 12:40 PM
testxbrw filter
Posted: Wed Mar 29, 2006 04:30 AM

Use SET SCOPE its faster and you can use ranges.

Continue the discussion