在RDLC中检查非数值时出现嵌套IIf问题 [英] Nested IIf Problem while checking NonNumeric value in RDLC
本文介绍了在RDLC中检查非数值时出现嵌套IIf问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的表达式:-在检查NULL值出现在字段中时出现问题.
= IIF(IsNumeric(Fields!TechHours.Value.ToString),
IIF(Right(Fields!TechHours.Value,Instr(Fields!TechHours.Value,."))> 0,
Fields!TechHours.Value,
Left(Fields!TechHours.Value,Instr(Fields!TechHours.Value,.")-1)
),
"NU"
)
Here''s my Expression:--It Occurs a problm while checking NULL value comes in the field.
=IIF(IsNumeric(Fields!TechHours.Value.ToString),
IIF(Right(Fields!TechHours.Value,Instr(Fields!TechHours.Value,"."))>0,
Fields!TechHours.Value,
Left(Fields!TechHours.Value,Instr(Fields!TechHours.Value,".")-1)
),
"NU"
)
推荐答案
我认为您需要先检查NUll,然后再进行其余处理.
I think you need to check NUll first and then do rest of the processing.
这篇关于在RDLC中检查非数值时出现嵌套IIf问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文