-
I really got frustrated now :(
My heads spinnin' but I can't get it to work!
I know it's not that hard but I just can't get it to work!!!
I want to remove forwardslashes from a string like
http://www.jop.com/jop/haha/site1/site.html
to
http://www.jop.comjophahasite1site.html
please don't pay attention to the http://, Vb-World is putting them there, so it's just www
Got it? I'm sorry for the stupidness but I know harder thinking only gets me more confused!
[Edited by Jop on 08-20-2000 at 06:38 PM]
-
Code:
Private Sub Command1_Click()
Text1 = Replace(Text1, "/", "")
End Sub
-
-
Found a substitute for all those VB4/5 Users!
Code:
Public Function replaceall(Byval searchstring As String, _
findstring As String, replacestring As String) As String
Dim curpos As Long
curpos = 1
Do
curpos = InStr(curpos, searchstring, findstring)
searchstring = Left$(searchstring, curpos - 1) & _
replacestring & Right$(searchstring, Len(searchstring) _
- curpos - Len(findstring) + 1)
Loop Until InStr(searchstring, findstring) = 0
replaceall = searchstring
End Function
[Edited by Jop on 08-20-2000 at 07:09 PM]
-
What do you want this for like while there typing Or something thats in a label
-
Oh i got it already :) you can't use /\:?" and some other characters in filenames, you I was removing them :)
thanks for your attention anyways!