水晶报表:如果其他式If
题
有关在晶体报告一个字符串字段我希望写上去式其中如果该字段为空,则应该显示为“无值”其他的实际值应该拿出
我已经写是
本地STRINGVAR X; 如果{mysp; 1.mystringfield} = “” 或ISNULL({mysp; 1.mystringfield})然后 X:= “否值”; 的否则 X:= {mysp; 1.mystringfield} 强>
粗体标记显示错误说“剩余文本不显示是的式晶体报告的一部分”
什么我的公式中不正确?
让我知道更多的投入。
感谢
解决方案
我觉得你需要删除;
和包裹或括号:
Local StringVar x;
If (IsNull({mysp;1.mystringfield}) or {mysp;1.mystringfield} ="") then
x := "No value"
Else x := {mysp;1.mystringfield}
其他提示
IF Isnull({mysp;1.mystringfield}) Then
"No Value"
Else
{mysp;1.mystringfield}
不隶属于 StackOverflow