something strange is happening, $replace not working
#2
Somebody here gave this function (sorry who was it ???)

Function strReplace$ (s$, replace$, new$) 'case sensitive
strReplace$ = s$
p = InStr(s$, replace$)
While p
strReplace$ = Mid$(strReplace$, 1, p - 1) + new$ + Mid$(strReplace$, p + Len(replace$))
p = InStr(p + Len(new$), strReplace$, replace$)
Wend
End Function
Why not yes ?
Reply


Messages In This Thread
RE: something strange is happening, $replace not working - by euklides - 07-25-2022, 03:09 PM



Users browsing this thread: 1 Guest(s)