VBscript - printing tabs

Results 1 to 3 of 3

Thread: VBscript - printing tabs

  1. #1
    Join Date
    Dec 1969

    Default VBscript - printing tabs

    Hi, does anyone know how I can print a tab to an HTML page using a VBscript script, This is the code I have at the moment:<BR><BR>&#060;% =artists(0) %&#062;<BR>&#060;% response.write(" ")%&#062;<BR>&#060;% =artists(1) %&#062;<BR>&#060;% response.write(" ")%&#062;<BR>&#060;% =artists(2) %&#062;<BR>&#060;% response.write(" ")%&#062;<BR>&#060;% =artists(3) %&#062;<BR>&#060;% response.write(" ")%&#062;<BR>&#060;% =artists(4) %&#062;<BR><BR>but I wany to have a tab instead of the (" ") so that all the different columns will be in line when they are printed to the screen even if the length of the string contained in artists(n) differs.<BR><BR>Thanks in advance<BR><BR>Dominic

  2. #2
    Kevin Guest

    Default RE: VBscript - printing tabs

    It would be far easier to use a table :<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default Use a table

    Web browsers strip extraneous spaces when they render HTML; You could put 5000 spaces between 2 characters, and it would render as one space. Same for tab characters, and even linefeeds in some cases.<BR><BR>Use a table for the formatting.

Posting Permissions

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