SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP/VB: Is there a way to set the write tab positions?

    ASP/VB: Is there a way to set the tab positions?


    I am outputing columns of data to a file using \t or vbtab. However, sometimes the data is bigger than the column, which pushes the next data over too far.

    Is there a way to specify where the tabs are, or to output to a specific position or to a specific column?

    -Mike-

  2. #2
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The '\t' inserts a standard ASCII (or UniCode-equivalent) tab character. It is up to the program displaying the file to decide how to display it. Thus, the only options governing its action (if there are any options) would be in the program you are using to view the file.

    What is the specific problem that these overlength columns are causing?


    M@rco

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good point about the viewing program. If I use Word to view the txt file, I can set the tabs where ever I like.

    When viewed in notepad, the larger column data just visually pushes the next data over too far (missed the next tab/column, because the data was bigger than the standard notepad column size). The result is that the output "looks" like it is in the wrong column. In reality, it is not -- there is still just one tab between each column of data, so it can be easily parsed by another program.

    Thanks for the brain alignment.

    -Mike-

  4. #4
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're welcome!


    M@rco


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •