Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISNULL

Status
Not open for further replies.

TEM3

Technical User
Dec 6, 2004
324
US
Could someone explain/describe the purpose of ISNULL in a statement such as the following:

if (IsNull({ALL_ASSIGNMENTS.Date Completed}))<etc>

I am using CR 8.5 with Oracle tables.....
 
Crystal formulas cab choke on null values. IsNull() checks if the value is null (and returns True if it is). This is crucial in avoiding runtime errors and unexpected formula results...

hth,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Having come to Crystal from mainframe languages, I got a 'cultural shock' when encountering null. It means 'no data': Mainframe languages mostly treat this as the same as zero.

It is actually a finer shade of meaning, the difference between 'Yes, we have no bananas' and 'I don't know how many bananas we have, it could be some, it could be zero'. In Crystal, the entry is 0 or null and can be tested for.

Note that Crystal assumes that anything with a null means that the field should not display. So if a null value is possible, put a test first.


[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top