PSS ID Number: 190742
Article Last Modified on 7/1/2004
<%
Function padQuotes( instring )
REM This function pads an extra single quote in strings containing
quotes for REM proper SQL searching.
Dim bodybuild
Dim bodystring
Dim Length
Dim i
bodybuild = ""
bodystring = instring
Length = Len(bodystring)
For i = 1 to length
bodybuild = bodybuild & Mid(bodystring, i, 1)
If Mid(bodystring, i, 1) = Chr(39) Then
bodybuild = bodybuild & Mid(bodystring, i, 1)
End If
Next
bodystring = bodybuild
padQuotes = bodystring
End Function
%>
Keywords: kbCodeSnippet kbDatabase kberrmsg kbhowto kbScript KB190742
Technology: kbASPsearch kbAudDeveloper kbiis400 kbiis500 kbiisSearch kbOLEDBProvSearch kbOLEDBSearch kbSQLServSearch