quote:
Originally posted by Stigmata
i quickly made a encode function that checks for a space(ascii 32) and then replaces it with a +.
You can easly do it with VB's Replace() function
code:
Dim URLString As String
URLString = "http://www.google.com/search?q=" & Replace$(Text1.Text, " ", "+")
Edit: Bah, cookie beat me to it, as I was writing it...
But cookie's code is slower, because he didn't include an $ in his replace function, so VB thinks that it should be used as a variant
Strings are faster than variants, because, variants can be anything, so they use more memory
(cookie, please correct me on this one
)