HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/itpartnership/tools/functions.asp
<%

' Replace in String AStr, all occurrences of AReplace with AWith
Function ReplaceStr(AStr, AReplace, AWith)
  Dim p
  ReplaceStr = ""
  Do While AStr <> ""
    p = InStr(AStr, AReplace)
    if p > 0 then
      ReplaceStr = ReplaceStr + Mid(AStr, 1, p - 1) + AWith
      AStr = Mid(AStr, p + Len(AReplace), Len(AStr))
    else
      ReplaceStr = ReplaceStr + AStr
      AStr = ""
    end if
  Loop
End Function

%>