Null values
Posted: Wed Dec 06, 2006 9:26 am
Hi,
for several reports, I need to discern if a given field equals null or 0.
I have the ConvertNulls-property of the report set to false.
In the Databand.Beforeprint event, I have tried this
if (!Datenquelle1.STMAPROZENT.Equals(null))
and this
if (Datenquelle1.STMAPROZENT != null)
Both versions compile all rigth, but I get the following error at runtime:
Method: [get_STMAPROZENT]
Die angegebene Umwandlung ist ungültig.
this should roughly translate to: this conversion is invalid.
So, what am I doing wrong?
for several reports, I need to discern if a given field equals null or 0.
I have the ConvertNulls-property of the report set to false.
In the Databand.Beforeprint event, I have tried this
if (!Datenquelle1.STMAPROZENT.Equals(null))
and this
if (Datenquelle1.STMAPROZENT != null)
Both versions compile all rigth, but I get the following error at runtime:
Method: [get_STMAPROZENT]
Die angegebene Umwandlung ist ungültig.
this should roughly translate to: this conversion is invalid.
So, what am I doing wrong?