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

sLineBreak in dbMemo

edited January 2014 in General
Hi,
i need to add a Linebreak in dbmemo field through RAP.
The following is a snippet code that show this :

begin
Note.Lines.Text := TISCertificatiTestata_pipe['Note'];

if (ISFGetAppValue('DOPPIA_LINGUA') = 'S') and
(TISCertificatiTestata_pipe['ENG_Note'] <> '' then
Note.Lines.Text := TISCertificatiTestata_pipe['ITA_Note']
+ sLineBreak + TISCertificatiTestata_pipe['ENG_Note'];
end;

The Rap compiler reports an error in "sLineBreak"

Thank in advance for your support.
Mauro Catellani.

Comments

  • edited January 2014
    Hi Mauro,

    sLineBreak is a Delphi-specific constant that is not currently supported
    by the RAP language. If you would like to add a line break in RAP, you
    can either use the TStrings.Add routine of the Lines property or you can
    manually insert the CRLF characters using the Chr() routine.

    Note.Lines.Add(TISCertificatiTestata_pipe['ITA_Note']);
    Note.Lines.Add(TISCertificatiTestata_pipe['ENG_Note']);

    or

    Note.Lines.Text := TISCertificatiTestata_pipe['ITA_Note'] + Chr(13) +
    Chr(10) + TISCertificatiTestata_pipe['ENG_Note']);


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.