dm.atinlog.open;
target := leftStr(postcode,4);
dm.atinlog.filter := 'postcode like ' + QuotedStr(target+'%') AND dm.atinlog.filter := 'autorisatie = ' + QuotedStr('klant');
dm.atinlog.filtered := true;
dbgrid1.visible := true;
Run Code Online (Sandbox Code Playgroud)
这是我的过滤器代码,但这不起作用。
[DCC 错误] unPostcode.pas(95): E2010 不兼容的类型:'string' 和 'procedure, untyped pointer or untyped parameter'
给出了这个错误。有什么问题,我需要做什么才能使它工作?字符串“klant”取自数据库。它彼此分开工作。但是,当使用单独的过滤器时,只有第二个过滤器起作用。
请帮忙,提前致谢
碧玉
将代码改成:
dm.atinlog.open;
target := leftStr(postcode,4);
dm.atinlog.filter := 'postcode like ' + QuotedStr(target+'%')
+ 'AND autorisatie = '+ QuotedStr('klant');
dm.atinlog.filtered := true;
dbgrid1.visible := true;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1802 次 |
| 最近记录: |