write items to text file with TAB as separator

Stijn_VU
Member Posts: 4
I want to write data to a text file, but the fields must be separated by a horizontal TAB. How can I write a TAB to a text file in Navision?
0
Comments
-
Take TAB key as char. Put Numerical Value( i think it is 11) to it.
Take fiels and concatenate with this char and write to a text file
If you need more help write to me
Param0 -
Can you explain it in code? I don't know what you mean.0
-
Do you use a dataport or another file-export? If you use a dataport just enter <TAB> in the properties as the field separator.
If your exporting the data by coding, use a global (for example TAB) defined as a char. Then you need this global to be filled with the ascii number of the tabulator. This is 09.
In Coding:
TAB:=09;
Now you can use this global to separate the fields. If you're exporting the data just enter format(TAB) between the fields. For example:
....
Export:='Item-No.: '+SalesInvLine."No."+' - '+SalesInvLine.Description+' '+SalesInvLine."Description 2"+FORMAT(TAB)+'Qty: '+FORMAT(SalesInvLine.Quantity)
.....
This should work!
Greetz,
N.GebhardProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt0 -
Thanks, it's working!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