Page 1 of 1

min of data

Posted: Mon Oct 18, 2010 6:34 am
by majidsoft
hi
i have a one data band that i show a data
in another data band i show a min or max of that data
when my data is null a min show a number like this 2132323212121212
but in decimal
i want if i dont have any data max or min not shown
this is my code of minimum
{Round(Min(DataBand1,boiler.roph),2)}
this is my code that shown a data
{IIF(boiler["roph"] == DBNull.Value,'-',boiler["roph"])}
thank you

min of data

Posted: Mon Oct 18, 2010 8:21 am
by Jan
Hello,

You can use following expression:

Code: Select all

{MyDataSource.Count == 0 ? 0 : Min(MyDataSource.MyField)}
Thank you.

min of data

Posted: Tue Oct 19, 2010 4:52 pm
by majidsoft
thank you

min of data

Posted: Tue Oct 19, 2010 10:44 pm
by Andrew
Hello,

We are always glad to help you.

Thank you.