Space Fuction

Results 1 to 2 of 2

Thread: Space Fuction

  1. #1
    Join Date
    Dec 1969

    Default Space Fuction

    Please help, this is what I got from VBScript help, but I do not get 10 spaces between Hello and World. I am using IE 4.0. Will someone help<BR>Dim MyString<BR>MyString = Space(10) &#039; Returns a string with 10 spaces.<BR>MyString = "Hello" & Space(10) & "World" &#039; Insert 10 spaces between two strings.<BR>

  2. #2
    Eddie Campbell Guest

    Default RE: Space Fuction

    Space() does work, the problem is that your browser is removeing the spaces. If you want the given example to display correctly in the browser do this:<BR>MyString = "Hello" & Space(10) & "World"<BR>MyString = Replace(MyString," ","&amp;nbsp;"<BR>Response.write MyString

Posting Permissions

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