Crystal Reports for Eclipse Designer Guide

IsNull (fld)

Description
Evaluates the field specified in the current record and returns TRUE if the field contains a null value.
Arguments
  • fld is any valid database, memo, or BLOB field.
  • Returns
    Boolean Value
    Action
    Evaluates the field specified in the current record and returns TRUE if the field contains a null value.
    Typical uses
    You can use this function in a record selection formula to limit the report to records that have something other than a null value in the field specified. You can also use it to have the program take some action whenever it encounters a null value.
    Examples
    IsNull({orders.ORDER AMOUNT}) = produces the following results:
    If{orders.ORDER AMOUNT} shows this value
    IsNull({orders.ORDER AMOUNT}) returns
    200.00
    False
    (null)
    True
    100.00
    False
    347.12
    False
    Not IsNull({orders.ORDER AMOUNT})
    When used as a record selection formula, includes in the report only those records that have something other than a null value in the {orders.ORDER AMOUNT} field.
    Comments
    Some databases support null data values and others do not. This function will not work if the active database(s) do not support null values. If the database(s) do support null values, the function can be used to reference the null values that get created as the result of a failed lookup while joining.
    Zero and blank (empty or " ") are not null values.



    SAP BusinessObjects
    http://www.sap.com/sapbusinessobjects/
    Support services
    http://service.sap.com/bosap-support/
    Product Documentation on the Web
    http://help.sap.com/