set exact off >close data > >create cursor cursor1 ( thetext c(10), isokay L ) >for n = 1 to 10 > insert into cursor1 values ( 'hello' + str( n, 2 ), .t. ) >next >index on thetext tag thetext > >create cursor cursor2 ( thetext c(10) ) >for n = 1 to 10 > insert into cursor2 values ( 'hello' + str( n, 2 ) ) >next > >set filter to FiltFuncBad1() >*set filter to FiltFuncBad2() >*set filter to FiltFuncGood1() >*set filter to FiltFuncGood2() > >DEFINE WINDOW BrowseWind at 1,1 size 18,77 CLOSE FONT 'Courier New', 10 STYLE 'BOLD' FLOAT GROW ZOOM SHADOW SYSTEM > >go top >browse window browsewind > >RETURN > >FUNCTION FiltFuncBad1 > > local llOk && !!!! > > return lookup( cursor1.isokay, 'h', cursor1.thetext, 'thetext' ) > >FUNCTION FiltFuncBad2 > > local llOk && !!!! > > return seek( 'h', 'cursor1', 'thetext' ) > >FUNCTION FiltFuncGood1 > return lookup( cursor1.isokay, 'h', cursor1.thetext, 'thetext' ) > >FUNCTION FiltFuncGood2 > return seek( 'h', 'cursor1', 'thetext' )