我的程序中有一个计算字段,它计算的公式随时会变,请问是否可以通过defaultExpress属性来设置计算公式,还是一定要在OnCalcFields事件中编程计算。若可以如何设置,为什么我设置后,程序总报错。例如我已有d1字段,d2为计算字段,现在我把d2字段的defaultExpress属性设为d1,想使得d2字段的值等于d1字段。但程序执行总报错field 'd2' can not be used in filter expression 。为什么!!请高手解答。
解决方案 »
- unicode编码转韩文编码
- 远程操作数据库,用什么方式最好
- installshield的安装过程如何做到只安装不覆盖?
- 已知进程名(如winrar),如何获得进程句柄?? 如何等待指定进程结束后,再运行下面程序??
- FastReport中用frReport1.DesignReport调出来的设计器看不到可用表?
- 关于基本语法的菜鸟问题
- 在局域网上如何通过IP地址获取主机名
- 如何捕捉到TDBGrid的移动消息或事件?
- 请问如何让程序在出错后不中断而继续错误语句之后的语句执行
- 我怎么才能把delphi专题下的所有文章下载到本地
- 怎样在用InstallShared Express制作安装程序时将sql server的数据库同时安装好?
- 请大家给一些好的建议!急急急!!!!!
including the quotes around the literal value.Note: If you supply a value for DefaultExpression, this value takes precedence over any default values for the field implemented on the database server. This is because DefaultExpression is applied to the field in your application before any edits are sent to the server.