水晶报告错误:剩余文字似乎不是公式的一部分 [英] crystal reports error : remaining text does not appear to be part of the formula
本文介绍了水晶报告错误:剩余文字似乎不是公式的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的水晶报表中出现错误:
I'm receiving an error in my crystal report:
重新显示的文本似乎不是公式的一部分。
The reminaing text does not appear to be part of the formula. the highlighted area in question is between the 2 **'s when the error is thrown.
这是我在Crystal语法中的公式。
Here is my formula in Crystal Syntax.
numbervar pos;
stringvar cpu;
if (Length ({_v_hardware.CpuDesc}) >2) then
(
pos := instr({_v_hardware.CpuDesc},",");
cpu ='{_v_hardware.CpuDesc}';
)
else
(
//cpu := {_v_hardware.CpuDesc2};
pos := instr({_v_hardware.CpuDesc},",");
cpu ={_v_hardware.CpuDesc};
)
**//replace({_v_hardware.CpuDesc}," ","")
if (pos > 0) then
(
replace(replace(replace(left(cpu, pos-1)," ",""), "Pentium(R) III",""),"Pentium III","");
)
else
(
replace(cpu," ","");
)**
任何想法都可能导致此错误?
Any ideas what might be causing this error?
预先感谢
推荐答案
将其弄清楚了。我只需要在最后一个括号之后的if-then语句的末尾添加一个分号(;)。
figured it out. I just had to add a semi-colon (;) to the end of the if-then statement following the very last parenthesis.
这篇关于水晶报告错误:剩余文字似乎不是公式的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文