专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > DotNet Exception

应用程序在当前操作中使用了错误类型的值,delphi 6.0 money类型提示

发布时间:2011-06-26 20:28:32 文章来源:www.iduyao.cn 采编人员:星星草

应用程序在当前操作中使用了错误类型的值,delphi 6.0 money类型提示

SQL.Add('select huikuanID,yongtu,jinge,shoukuandanwei,kaihuheng,zhanghu,banzu,jingshouren  from huikuanmingxi where banzu=:banzu and shoukuandanwei like :huowumingcheng  or  jinge like :guige as Currency order by riqi ASC');
  Parameters.ParamByName('banzu').Value:=banzu;


  Parameters.ParamByName('huowumingcheng').Value:='%'+huowumingcheng+'%';
  Parameters.ParamByName('guige').Value:='%'+guige+'%';
guige,huowumingcheng是一个广本框的变量

------解决方法--------------------------------------------------------
deiphi里没有money类型,只有Currency货币类型。而且如果你用到小数你会发现,real类型是五舍六入,Currency是四舍五入。这是我在delphi6里面测试的。不知道别的版本是不是这样

    
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: