How to chech Decimal is null?

Stimulsoft Reports.NET discussion
Post Reply
roomy
Posts: 61
Joined: Mon May 06, 2013 12:34 pm

How to chech Decimal is null?

Post by roomy »

I want to check decimal is null in text editor window.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to chech Decimal is null?

Post by HighAley »

Hello.

Could you describe your issue more detailed with any sample?

Thank you.
roomy
Posts: 61
Joined: Mon May 06, 2013 12:34 pm

Re: How to chech Decimal is null?

Post by roomy »

Yes , I have a column in datasource type Decimal(nullable) and try to check null with IIF like;

IIF(datasource.column1 == null, "N/A",datasource.column1);
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to chech Decimal is null?

Post by Alex K. »

Hello,

Please try to use the following expression:

Code: Select all

IIF(datasource["column1"] == DBNull.Value, "N/A",datasource.column1);
Thank you.
roomy
Posts: 61
Joined: Mon May 06, 2013 12:34 pm

Re: How to chech Decimal is null?

Post by roomy »

"DBNull.Value" Generate error in text editor.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to chech Decimal is null?

Post by Alex K. »

Hello,

Please send us a sample report which reproduce the issue for analysis.

Thank you.
Post Reply