这里需要一个字符串。 [英] a string is required here.
问题描述
大家
此论坛未激活
***
此处不支持CR。请在那里询问: http://scn.sap.com/community/crystal-reports-for-visual-studio/content?filterID=objecttype [线程]
显然数量是一个数字。数字以二进制格式存储,而不是十进制字符。因此,您无法获取数字的最后两个字符。您只能从字符串中获取字符。解决方案不是将值转换为字符串
,而是进行数值运算以获取所需的信息。
hi all
this forum is not active
I Use This Codes in my Report
IF Right({rptProductAction2.Quanty},2)='00' THEN
Round({rptProductAction2.Quanty})
but i see an error( a string is required here.)
in this line:
Right({rptProductAction2.Quanty},2)
how solve it
please help me
thanks
***
CR is not supported here. Ask there instead: http://scn.sap.com/community/crystal-reports-for-visual-studio/content?filterID=objecttype[thread]
Obviously quantity is a number. Numbers are stored in a binary format, not as decimal characters. Consequently you can not get the last two characters of a number. You can only get characters from a String. The solution is not converting the value to a string but doing numeric operations to get the information you need.
这篇关于这里需要一个字符串。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!