Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Search record from tab
Posted: Thu Sep 17, 2015 07:51 AM
I tried :
@ oApp():nGridBottom, nSplit+2 TABS oApp():oTab ;
OPTION nOrder SIZE oApp():nWidth()-80, 12 PIXEL OF oApp():oDlg ;
ITEMS "Tutti","A","B","C","D","E","F","G","H","I","J","K","L","M","N","ร","O","P","Q","R","S","T","U","V","W","X","Y","Z" ;
ACTION ( CU->(DbSetOrder(nOrder)),;
Cufiltrar(oApp():oGrid, oApp():oTab,oApp():nOption) )
Function Cufiltrar (oGrid,oTab,n,nOrder)
?alltrim(oApp():aPrompts[n] )
do case
case nOrder= 1
CU->(DbSetFilter( alltrim(Left(CU->First,1))==alltrim(oApp():aPrompts[n] ) ))
case nOrder= 2
CU->(DbSetFilter( alltrim(Left(CU->Last,1))==alltrim(oApp():aPrompts[n] ) ))
endcase
CU->(DbGoTop())
oApp():Refresh(.t.)
return nil
but it not run
If I use Wdbu and make a filter sample Left(cu->first,1)="A" it run
why on fwh not run ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com