nRecno=0 scan for 条件表达式 nRecno=recno() endscan ? '最后一个符合条件的记录号是:'+alltrim(str(nRecno))
set filter to 条件表达式 go bott ? recno()
SELECT TOP 1 RECNO() as rn FROM tab1 WHERE ... ORDER BY rn DESC