mibuso.com

Microsoft Business Solutions online community
It is currently Thu May 23, 2013 9:52 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Solved] How to insert TAB character as separator when writing a file
PostPosted: Wed Jun 27, 2012 5:29 pm 
Offline

Joined: Thu Sep 07, 2006 11:58 am
Posts: 471
Location: Mendrisio
Country: Switzerland (ch)
Hello,

How is it possible to insert a TAB character as separator of field when writing a file using File and Outstream object?

Thank you


Last edited by andy76 on Tue Jul 03, 2012 10:43 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: How to insert TAB character as separator when writing a
PostPosted: Wed Jun 27, 2012 6:11 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
You create a variable "TXTTab" Type CHAR

OnPreDataItem()
TXTTab := 09;

Then use that field in your code: (see sample below)

WriteFile := 'D'+FORMAT(TXTTab)+ItemNo+FORMAT(TXTTab)+FORMAT(Quantity);
Stream.WRITETEXT(WriteFile);
Stream.WRITETEXT();

Result looks like:


Attachments:
result.JPG
result.JPG [ 6.93 KiB | Viewed 511 times ]

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org
Top
 Profile E-mail WWW  
 
 Post subject: Re: How to insert TAB character as separator when writing a
PostPosted: Tue Jul 03, 2012 5:47 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
Can we assume this worked for you? :-k

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: How to insert TAB character as separator when writing a
PostPosted: Tue Jul 03, 2012 6:05 pm 
Offline

Joined: Thu Sep 07, 2006 11:58 am
Posts: 471
Location: Mendrisio
Country: Switzerland (ch)
Yes, thank you very much


Top
 Profile  
 
 Post subject: Re: How to insert TAB character as separator when writing a
PostPosted: Tue Jul 03, 2012 6:34 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
Edit the orig post and change the attibute to solved.
thanks

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: