Control a label.Visible based on integer value in dataset
Hi.
I have a report listing invoices.
If the invoice is a credit, I would like a Label to be show in the header of
the report.
To tell if a invoice has been credited or not is an integer value of the
master dataset.
I have tried several things in RAP, but can't get this to work:
This is my code:
procedure Label95OnPrint;
if plAvr['Regnskapsflagg'] = 2 then
Label95.Visible:= True
else
Label95.Visible:= False;
end;
Any Ideas?
Petter Topp
Delphi 2010
ReportBuilder 12.03
I have a report listing invoices.
If the invoice is a credit, I would like a Label to be show in the header of
the report.
To tell if a invoice has been credited or not is an integer value of the
master dataset.
I have tried several things in RAP, but can't get this to work:
This is my code:
procedure Label95OnPrint;
if plAvr['Regnskapsflagg'] = 2 then
Label95.Visible:= True
else
Label95.Visible:= False;
end;
Any Ideas?
Petter Topp
Delphi 2010
ReportBuilder 12.03
This discussion has been closed.
Comments
Problem solved.... error on my part - was not using the correct value to
check against.
Petter
"Petter Topp" skrev i nyhetsmeldingen: 4f05f2da@mail. ...
Hi.
I have a report listing invoices.
If the invoice is a credit, I would like a Label to be show in the header of
the report.
To tell if a invoice has been credited or not is an integer value of the
master dataset.
I have tried several things in RAP, but can't get this to work:
This is my code:
procedure Label95OnPrint;
if plAvr['Regnskapsflagg'] = 2 then
Label95.Visible:= True
else
Label95.Visible:= False;
end;
Any Ideas?
Petter Topp
Delphi 2010
ReportBuilder 12.03