testxbrw filter

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

testxbrw filter

Post by Ehab Samir Aziz »

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
jcaro
Posts: 270
Joined: Fri Nov 11, 2005 7:39 pm

Example of filter

Post by jcaro »

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
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Post by Ehab Samir Aziz »

Is that code will result to access one record as focused by dbseek ?
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Post by Ehab Samir Aziz »

Even that code does not focus on seeking x value ?!!!!
grumpy
Posts: 48
Joined: Tue Dec 27, 2005 12:40 pm
Location: Australia

Post by grumpy »

Use SET SCOPE its faster and you can use ranges.
Post Reply