q: line feed or CrLf in SourceExpression of a text

tomM21tomM21 Member Posts: 13
hi, i have a standard text field in a report like:
'Hello Mr. XYZ, u have x positions open.'

what i want is a new line after the comma. i tried:
- 'Hello Mr. XYZ, ' + '\' + ' u have x positions open.'
>> no result, means it handles it as a string

- 'Hello Mr. XYZ, ' + 'CrLf' + ' u have x positions open.'
>> no result, means it handles it as a string

>> how do i solve this?

thx

Comments

  • SavatageSavatage Member Posts: 7,142
    Why not just make 2 text fields, one under the other?
  • tomM21tomM21 Member Posts: 13
    coz i have a lot of text. putting it in as less as possible fields is easier maintenance. and coz i'ld like to know.
    thx
  • SavatageSavatage Member Posts: 7,142
    If it's ment to be in some type of letter form then the salutaion "Dear Mr SoandSo," should be seperate.

    Another text box with MultiLine Property (Use this property to tell the system if a label or text box can display multiple lines of text inside a single text box or label.) set to yes.

    But I don't think you can force your own line breaks with this method and you will have to expand your text box hight & width to accomodate the text.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    Alain (kriki) has posted a tip/trick on how to do this, try searching it should not be hard to find.
    David Singleton
  • tomM21tomM21 Member Posts: 13
    MultiLine YES and '\' works.
    thx
  • SavatageSavatage Member Posts: 7,142
    \ works? I was thinking you would have to set a CHAR variable to 10 for example

    vChar := 10;
    newtext := 'Dear Mr SoandSo'+FORMAT(vChar)+'How are you doing?';

    Still setting the multiline to yes.
Sign In or Register to comment.