Options

NewLine RTC \command Classic

BoMortensenBoMortensen Member Posts: 5
edited 2012-03-19 in NAV Three Tier
Hello, I tried to search for this but I havnt found any hits on this.

If I have a text in a classic report that like this.
"This is line 1\This is line 2\This is line3"

It will print out like this
This is line 1
This is line 2
This is line 3

If I send this to RTC it will write This is line 1\This is line 2\This is line3

Currently the only way I have found to get 3 lines in RTC is to do the following:
IF ISSERVICETIER THEN
  BEGIN
    char10 := 10;
    char13 := 13;

    lineText := LINETEXT1 + FORMAT(char13) + FORMAT(char10) +
                   LINETEXT2 + FORMAT(char13) + FORMAT(char10) +
                   LINETEXT3;
  END
ELSE
  lineText := LINETEXT;

I tried to use CONVERTSTR but but since I add 2 chars insted of 1 it wont do that.
I guess I could run through the line and replace every \ with the 2 chars but Im wondering if there is a simpler solution.

Comments

Sign In or Register to comment.