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(Re quest.Form("Int ernalDesc")),"' ","''")
and here is what Ray suggests:
SafeIn(Request. Form("InternalD esc"))
and
Function SafeIn(theStrin g)
SafeIn = Replace(theStri ng, "'", "''")
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(Re quest.Form("Int ernalDesc")),"' ","''")
and here is what Ray suggests:
SafeIn(Request. Form("InternalD esc"))
and
Function SafeIn(theStrin g)
SafeIn = Replace(theStri ng, "'", "''")
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
Comment