insert multiple lines in one cellule excel with code C/AL ??

amh1984
Member Posts: 9
Version 2 of my msg ^^"
Hi ,
I want insert multiple lines in one cellule of excel (carriage return Alt+Enter).
So, i use the hex code : '
 '
This is my code :
IF rArchSerJobLine.FIND('-') THEN BEGIN
REPEAT BEGIN
vGInst:=vGInst + rArchSerJobLine.Instruction + ' ' + rArchSerJobLine."Instruction 2" + ' ' + '
 ' + ' ' ;
until rArchSerJobLine.next = 0;
The carriage return work perfect but not for the the first line !!!!!!!!
my result in cellule excel :
FRAIS DE TRANSPORT VN HORS FILIALES 
 LIVRAISION A CIE YOP 5000F LIVRAISION CHER THELEN
2000F LIV GARAGE CENTRAL CIE YOP 5000F
LIV CHEZ CMT 2000F LIV CHEZ THELEN KOUMASSI
2000F LIV CARE LINE 4000F LIV YOP 5000F
the result that i want :
FRAIS DE TRANSPORT VN HORS FILIALES
LIVRAISION A CIE YOP 5000F LIVRAISION CHER THELEN
2000F LIV GARAGE CENTRAL CIE YOP 5000F
LIV CHEZ CMT 2000F LIV CHEZ THELEN KOUMASSI
2000F LIV CARE LINE 4000F LIV YOP 5000F
Someone have an idea ????
plz ....
Hi ,
I want insert multiple lines in one cellule of excel (carriage return Alt+Enter).
So, i use the hex code : '
 '
This is my code :
IF rArchSerJobLine.FIND('-') THEN BEGIN
REPEAT BEGIN
vGInst:=vGInst + rArchSerJobLine.Instruction + ' ' + rArchSerJobLine."Instruction 2" + ' ' + '
 ' + ' ' ;
until rArchSerJobLine.next = 0;
The carriage return work perfect but not for the the first line !!!!!!!!
my result in cellule excel :
FRAIS DE TRANSPORT VN HORS FILIALES 
 LIVRAISION A CIE YOP 5000F LIVRAISION CHER THELEN
2000F LIV GARAGE CENTRAL CIE YOP 5000F
LIV CHEZ CMT 2000F LIV CHEZ THELEN KOUMASSI
2000F LIV CARE LINE 4000F LIV YOP 5000F
the result that i want :
FRAIS DE TRANSPORT VN HORS FILIALES
LIVRAISION A CIE YOP 5000F LIVRAISION CHER THELEN
2000F LIV GARAGE CENTRAL CIE YOP 5000F
LIV CHEZ CMT 2000F LIV CHEZ THELEN KOUMASSI
2000F LIV CARE LINE 4000F LIV YOP 5000F
Someone have an idea ????
plz ....
0
Comments
-
I usually create 2 variables of Char type: CR and LF.
Define the value of variables before starting the code:CR := 13; LF := 10; vGInst:=vGInst + rArchSerJobLine.Instruction + ' ' + rArchSerJobLine."Instruction 2" + ' ' + CR + LF + ' ' ;
Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0
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