Equivalent value for a NULL DateTime Data type (on ConvertNull Property = true)
Posted: Mon Jan 14, 2008 9:19 pm
Hi, when a data (of type DateTime) is null, what is its Stimulsoft Report Tool equivalent? I understand that for number values -- it sets to 0 given that property ConvertNull = True.
I needed your advise on this since I got an error for this situation: I am trying to create a BeforePrint condition so that FooterDates.Enabled = false whenever OrderInstrum.CommencementDate is null.
I used this:
if (dspaymentCertificateForm.COMMENCEMENTDATE.Equals(null))
FooterDates.Enabled = false;
But I got this error:
Method: [get_COMMENCEMENTDATE] Object reference not set to an instance of an object.
Please advise what can I do about this.
Thanks in advance.
I needed your advise on this since I got an error for this situation: I am trying to create a BeforePrint condition so that FooterDates.Enabled = false whenever OrderInstrum.CommencementDate is null.
I used this:
if (dspaymentCertificateForm.COMMENCEMENTDATE.Equals(null))
FooterDates.Enabled = false;
But I got this error:
Method: [get_COMMENCEMENTDATE] Object reference not set to an instance of an object.
Please advise what can I do about this.
Thanks in advance.