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

How to insert newline or tab into a string ?

edited March 2006 in RAP
Hi,

How can I insert special chars like newline or tab in a RAP-string ?

'Textext' + #13#10 + 'TextText' won't compile, +#13+#10+ doesn't work too.

I'm using RB9 Ent.

TIA,

Heiko Kn?ttel

Comments

  • edited March 2006

    - use the Chr function

    Example:


    Memo1.Lines.Text := 'Hello' + Chr(13) + Chr(10) + 'World';




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.