sLineBreak in dbMemo
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.
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.
This discussion has been closed.
Comments
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']);
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com