Reputation: 1
I run the following code and an error occurs
The code in stimulsoft
{Switch( SumRunning( DataSource1.num) > 0 ,"yes")}
Error: Exception has been thrown by the target of an invocation. Why???
Upvotes: 0
Views: 1368
Reputation: 1
You can try this:
{IIF(SumRunning(DataSource1.num) > 0, "yes" , "No")}
If you use Switch, use this:
{Switch(CommonPayment.CheckStatus == 0, "وصول شده",
CommonPayment.CheckStatus == 1, "در جریان وصول",
CommonPayment.CheckStatus == 2, "برگشتی")}
This code is executed if SumRunning(DataSource1.num)
returns the number.
Upvotes: 0