tab in a file
ricky76
Member Posts: 204
I am creating a file from Navision with just one line of data. However between a couple of the variables i export to the text filed i want to have a tab between them. Can anyone show me an example of how to do this? Any help would be greatly appreciated.
0
Comments
-
global variable txtTab : Text10;
txtTab := 'x'; txtTab[1] := 9; filTheFile.WRITE('Some text' + txtTab + 'and this comes after the TAB');Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Many thanks0
-
Is there a reason why you have the following line?
txtTab := 'x';0 -
Probably to have a [1]st char? Never used it this way either.
I always use char:chrTab := 9; filTheFile.WRITE('Some text' + FORMAT(chrTab) + 'and this comes after the TAB');
Some search results:
- http://www.mibuso.com/forum/viewtopic.php?t=3980
- http://www.mibuso.com/forum/viewtopic.php?t=45560 -
I am not sure if Navision uses 0-terminated strings internally or another way.ara3n wrote:Is there a reason why you have the following line?
txtTab := 'x';
So just to be sure I initialize the string.
I don't know if it is needed, but I do it anyway to be sure it will work fine.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
It works without it. Using a string instead of char makes the code smaller, you don't have to write format everywhere.0
-
-
Well, there is a limit on how many characters we can cram into 1 line.Waldo wrote:ara3n wrote:It works without it. Using a string instead of char makes the code smaller, you don't have to write format everywhere.
Where are the days we were looking at the number of lines ... now we're even looking at the number of characters... .
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

