水晶报告错误:剩余文本似乎不是公式的一部分 [英] crystal reports error : remaining text does not appear to be part of the formula

查看:9
本文介绍了水晶报告错误:剩余文本似乎不是公式的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在水晶报告中收到一个错误:

I'm receiving an error in my crystal report:

reminaing 文本似乎不是公式的一部分.引发错误时,有问题的突出显示区域位于 2 ** 之间.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆