TAB DELIMITED output


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: TAB DELIMITED output

  1. #1
    Join Date
    Feb 2006
    Posts
    15

    TAB DELIMITED output

    Hi,
    I am using "Print" statement to create text file. I want it to be TAB delimited. Can anyone give sample code for this ?

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Posts
    133
    This is a possibility:

    Code:
    Dim strField        As String
        Open "c:\tmp\test.txt" For Output As #1
        
        strField = "test1" & vbTab & "Description" & vbTab & "Number"
        Print #1, strField
        strField = "test2" & vbTab & "Description" & vbTab & "Number"
        Print #1, strField
        strField = "test3" & vbTab & "Description" & vbTab & "Number"
        Print #1, strField
        strField = "test4" & vbTab & "Description" & vbTab & "Number"
        Print #1, strField
        Close #1
    Benjamin

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Print #hFile, "column 1"; vbTab; "column 2"; vbTab; "column 3"
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 0
    Last Post: 11-28-2005, 01:56 PM
  2. Crystal Reports and tab delimited file
    By nemcruncher in forum .NET
    Replies: 1
    Last Post: 08-15-2005, 09:53 AM
  3. Tab Delimited text file problem
    By nanban4u in forum VB Classic
    Replies: 2
    Last Post: 08-12-2005, 09:49 PM
  4. Tab delimited files
    By Hans-Arne Sandem in forum .NET
    Replies: 1
    Last Post: 01-05-2002, 01:19 PM
  5. Replies: 1
    Last Post: 03-14-2000, 01:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center