#1
  1. No Profile Picture
    Contributing User
    ASP Adventurer (500 - 999 posts)

    Join Date
    Sep 2006
    Location
    California
    Posts
    766
    Rep Power
    25

    How to insert a tab character in VBScript?


    When I do this:

    I do not see my DB values moved by a tab space. Any ideas?

    Code:
    rsOrg.open sqlOrg, Conn
    
    				Do While Not rsOrg.EOF
    				Response.Write(vbTab)
    				%>
    					<input type=radio name=crystalradio value="<%=rsOrg("EmpID")%>
    					<font color="0033AB"><b><%=rsOrg("Sub_Name")%></b></font>
    					<br>
    				<%
    				rsOrg.MoveNext
    				Loop
    	%>
    Thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Jun 2004
    Posts
    222
    Rep Power
    25
    Because it is being interpreted by the browser and they dont have a tab because they intepret all spaces as a single space.

    Instead try this

    Code:
    Do While Not rsOrg.EOF
    Response.Write "& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;"
    %>
    You dont need a space between the & and the nbsp;

    I just typed it that way because & nbsp; is rendered as an asterix on this forum
  4. #3
  5. No Profile Picture
    Contributing User
    ASP Mastermind (5000+ posts)

    Join Date
    Aug 2005
    Location
    North East, UK
    Posts
    6,191
    Rep Power
    137
    You would be better off learning CSS to implement padding and margins
    http://www.w3schools.com/css/default.asp

Similar Threads

  1. Replies: 2
    Last Post: May 5th, 2006, 09:58 AM
  2. Difficult Query/Subquery ...
    By mehere in forum Microsoft SQL Server
    Replies: 10
    Last Post: December 21st, 2005, 11:34 AM
  3. Replies: 12
    Last Post: November 29th, 2005, 02:56 AM
  4. possible to insert Javascript into VBscript?
    By zwonimir in forum ASP Development
    Replies: 4
    Last Post: June 15th, 2004, 06:42 AM
  5. INSERT INTO and VBScript variables
    By galtomi in forum ASP Development
    Replies: 2
    Last Post: December 19th, 2003, 02:42 PM

IMN logo majestic logo threadwatch logo seochat tools logo