How to hide a TppLabel depending on a DataPipeLine's Field Value
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
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
This discussion has been closed.
Comments
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