q: line feed or CrLf in SourceExpression of a text

tomM21
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
'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
0
Comments
-
Why not just make 2 text fields, one under the other?0
-
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.
thx0 -
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.0 -
Alain (kriki) has posted a tip/trick on how to do this, try searching it should not be hard to find.David Singleton0
-
MultiLine YES and '\' works.
thx0 -
\ 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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions