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

Variant in rap

edited October 2007 in RAP
how do i check if the field's value is null?

this code won't work:
if MyDataSet['FIELD01'] = null then
Value := 'Missing'
else
Value := 'Something..';

any idea?

thanks



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited October 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
  • edited October 2007
    thanks a lot!

    end10




    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.