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

Problem with OnGetText event

edited November 2007 in General
Hi,

I'm having a problem with the OnGetText event of a TPPLabel

The code I'm using is as follows:

procedure TReportTicket2A5.ppLabel1GetText(Sender: TObject; var Text:
String);
begin
text := 'Receival';
if TicketQType.value = 'C' then
text := 'Container';
end;

I'm finding that even though the code runs, and assigns 'Text' a string, the
label remains to be the existing caption/text that was assigned to it.

This was working fine previously, until I installed 10.07.

Thanks & Regards

Adam.

Comments

  • edited November 2007
    I have placed a reproducable demo of this bug at:
    www.wsd.net.au/temp/rbuilder.zip

    Not sure, but it may have something to do with sub-reports?

    Best Regards

    Adam.
  • edited November 2007
    Hi Adam,

    There is a patch available that fixes this issue. Please send an email to
    support@digital-metaphors.com requesting the patch and we'll send it to you
    asap.

    --
    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.