"A statement is expected here" 公式车间 Crystal 报告 2008 中出现错误

"A statement is expected here" error ocured in Crystal Report 2008 in formula workshop

我在 Crystal Reports 2008 Formula Workshop 中写了一个公式。

我试了很多组合还是报错

A statement is expected here

我的代码如下:

If not isnull({Auditproduct.newParam6_Low1}) then
If {Auditproduct.oldParam6_Low1}<>{Auditproduct.newParam6_Low1} then
"-T1: " + totext({Auditproduct.newParam6_Low1}) + " "  & 
//facing formula near"-T1: "ON ABOVE LINE.
If not isnull({Auditproduct.newParam6_Upp1}) then
If {Auditproduct.oldParam6_Upp1}<>{Auditproduct.newParam6_Upp1} then
"-T1 :" + totext({Auditproduct.newParam6_Upp1}) + chr(10) 

感谢您的帮助。

我在 crystal 配方车间报告中找到了解决方案 在工具提示上有下拉菜单 "Basic Syntax",所以我将其更改为 "Crystal Syntax"。