set filter 与 reccount()的问题
帮助中:The value RECCOUNT( ) returns isn't affected by SET DELETED and SET FILTER.那当表设置了set filter to &条件 时,想计算出目前显示的记录数怎么计算?
* 下述代码统计表的记录数到变量 nRecNum
LOCAL nSelect,nRec
nSelect = Select()
Select 表
nRec = IIF(EOF(),0,RECN())
Count To nRecNum
IF nRec # 0
GO nRec
ENDIF
Select (nSelect)