Notices

Great community. Great ideas.

Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.

Thread: How to insert a tab character in VBScript?

Results 1 to 3 of 3
Share This Thread →
  1. #1
    zwieback89 is offline Contributing User
    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
    yhgtbfk is offline Contributing User
    Join Date
    Jun 2004
    Posts
    222
    Rep Power
    24
    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

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

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

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

ASP Free Advertisers and Affiliates