在delphi7中
以下语句会报错
DataModule2.ADOQuery1.Filtered := true;
DataModule2.ADOQuery1.FilterGroup := fgPredicate;其中ADOQuery1.LockType设为ltBatchOptimistic;adoquery1.CursorType设为ctKeyset;adoquery1.CursorLocation设为clUseClient;查询语句也是简单的select 语句错误信息如下:
"Project Project1.exe raised exception class EOleException with message '参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。'. Process stopped. Use Step or Run to continue."请问各位大侠是什么问题,相信这段代码在delphi5下面应该运行正常,是delphi7的ado版本问题吗?还是不能这样子写了?我想过滤出缓存中被删除的记录,如何处理?