This source codes is written in Visual Basic 6.
Public Function BalanceQoute(sText As String) As String
Dim sSavar As String, i As Integer
sSavar = ""
For i = 1 To Len(Trim(IfNull(sText)))
If Mid(sText, i, 1) <> "'" Then
sSavar = sSavar + Mid(sText, i, 1)
Else
sSavar = sSavar + "''"
End If
Next i
ChkValue = sSavar
End Function
0 comments:
Post a Comment