我有以下代码失败
=IIF(Parameters!yearFormat.Value="fiscalYear",
"FISCAL YEAR: " & IIF(Month(NOW()) > 6, Year(NOW())+1, Year(NOW())),
"NATURAL YEAR: " & Year(NOW()))
我得到的错误是#error
,我也收到了这个警告:
[rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox23.Paragraphs[0].TextRuns[0]’ contains an error: Input string was not in a correct format.
我在这里做错了什么?
答案 0 :(得分:1)
您正在使用整数混合字符串而不使用强制转换。
尝试使用Intent intent = getIntent();
if (intent.hasExtra("exit")) {
// finish immediately
finish();
return;
}
将整数转换为字符串:
CStr()