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

How to hide a TppLabel depending on a DataPipeLine's Field Value

edited July 2006 in RAP
Hi,

I need to hide a?label in a report if a DataPipeLine's Field Value (Date)
is NULL. My first attempt was a code like this:
lblAnul.Visible:= lInvoice['DATE_ANUL'] <> Null;
but it didn't work...

The label is at the Title band of the report and the code bellow is in
the title's AfterGenerate event procedure. I'm using RB 7.02...

If any of you have a suggestion I would be very pleased.

Regards,
Elio.



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

Comments

  • edited July 2006
    ----------------------------------------------
    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');

    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.