Insert new line for a string in C/AL Code
                
                    SINOEUNSTEVENNEANG                
                
                    Member Posts: 202                
            
                        
            
                    Dear
Could you please tell now to insert new for string
A := "Welcome"
B :="Cambodia"
how can i make C become 2 lines ?
C := A + B
waiting for your kindly reply.
                Could you please tell now to insert new for string
A := "Welcome"
B :="Cambodia"
how can i make C become 2 lines ?
C := A + B
waiting for your kindly reply.
0                
            Comments
- 
            Can you be more clear?
What do you mean by 2 lines?0 - 
            Edit: double post"Money is likewise the greatest chance and the greatest scourge of mankind."0
 - 
            
A := 'Welcome'; B := 'Cambodia'; C := A + '\' + B;
"Money is likewise the greatest chance and the greatest scourge of mankind."0 - 
            einsTeIn.NET wrote:
A := 'Welcome'; B := 'Cambodia'; C := A + '\' + B;
it work fine with classic report but in RTC report it display "Welcome \Cambodia"0 - 
            Did you try \n?"Money is likewise the greatest chance and the greatest scourge of mankind."0
 - 
            To me the post is confusing beacuse the first post shows
A := "Welcome"
B :="Cambodia"
then you combine them
c:= a+b
then you want them seperated on two lines again.
Is this for a report? The just put the two seperate field togther one under the other.
:-k
You mention RTC - so should this post be in forum: NAV Three Tier?0 - 
            A good way to force a new line is to use the ascii character for LineFeed. Carrige ride might also be needed. This can be used in Text variables interted into reports.
Define a text variable.variable[1] := 10; //Ascii for Linefeed TextString := 'Text' + variable + 'text on new line'
Output:
Text
text on new line0 - 
            Just giving a childish answer.
If you want the string Welcome Cambodia instead of WelcomeCambodia, try giving a space before Cambodia like ' Cambodia'.0 - 
            
VarMessage := 'Welcome Cambodia'; VarMessage[8] := 10; //Replace the 8th character (Space) with a Linefeed MESSAGE(VarMessage);
0 
Categories
- All Categories
 - 73 General
 - 73 Announcements
 - 66.7K 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
 - 323 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
 

