这里需要一个字符串错误

时间:2017-04-05 07:38:15

标签: crystal-reports

如何解决“此处需要字符串”的错误

IF {RECEIVED AMOUNT} <= 0
THEN "CANCELLED"
ELSE {RECEIVED AMOUNT}

1 个答案:

答案 0 :(得分:2)

{RECEIVED AMOUNT}投射到字符串。尝试使用ToText()函数:

IF {RECEIVED AMOUNT} <= 0 THEN "CANCELLED" ELSE ToText({RECEIVED AMOUNT})