Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

Testing for Database Nulls

edited August 2007 in RAP
Hi,

What is the best way to test for nulls in RAP?

My scenario is I have 3 columns I wish to use as follows

if col1 not equal nulls then use its value
else if col2 not equal null then use its value
else if col3 not equal nulls then use its value
else output some text.

I cannot find anything with some kind of function to test for nulls.
Any help much appreciated
Thanks - Barry

Comments

  • edited August 2007
    ----------------------------------------------
    Tech Tip: RAP: Checking for Null Data Values
    ----------------------------------------------

    The DataPipeline.FieldObjects[] array property provides access to the
    TppField objects. TppField has an IsNull boolean property.

    The notation is DataPipeline.FieldObjects['FieldName'].IsNull

    example:

    if Customer.FieldObjects['Addr1'].IsNull then
    ShowMessage('field value is null');


    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.