Results 1 to 2 of 2

Thread: Replace ? HELP!

  1. #1

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Replace ? HELP!

    Dim x As String

    x = txtURL.Text
    x.Replace(" ", "+")

    txtURL.Text = x
    Why does this not replace the spaces with a +

    I have tried
    txtURL.Text.replace (" ". "+")
    that does not work either

  2. #2
    Addicted Member
    Join Date
    Aug 1999
    Posts
    164

    Re: Replace ? HELP!

    Originally posted by Stick
    Dim x As String

    x = txtURL.Text
    x.Replace(" ", "+")

    txtURL.Text = x
    Why does this not replace the spaces with a +

    I have tried
    txtURL.Text.replace (" ". "+")
    that does not work either
    Try this:

    txtURL.Text = Replace(TxtURL.Text," ","+")
    -Shurijo

Posting Permissions

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



Click Here to Expand Forum to Full Width