M
middletree
Ray recently answered my question about apostrophe replacement with advice
on how to use 2 functions for hwich he gave me some code, called SafeIn and
Safeout
I'm having a hard time seeing the difference. In fact, the results are the
same.
Here's my old code:
Replace(Trim(Request.Form("InternalDesc")),"'","''")
and here is what Ray suggests:
SafeIn(Request.Form("InternalDesc"))
and
Function SafeIn(theString)
SafeIn = Replace(theString, "'", "''")
End Function
The results are the same: when I type in:
won't
One the page where it is displayed, it looks like:
won''t
on how to use 2 functions for hwich he gave me some code, called SafeIn and
Safeout
I'm having a hard time seeing the difference. In fact, the results are the
same.
Here's my old code:
Replace(Trim(Request.Form("InternalDesc")),"'","''")
and here is what Ray suggests:
SafeIn(Request.Form("InternalDesc"))
and
Function SafeIn(theString)
SafeIn = Replace(theString, "'", "''")
End Function
The results are the same: when I type in:
won't
One the page where it is displayed, it looks like:
won''t