Rimma,
Probably what you wanted to do is:
>>> new
CSpString(CSpUtil.replaceSubstringAll(articleText.toString(),"'","\""));
<<<
===
====
Aby
-----Original Message-----
From: Rimma [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 04, 1999 6:59 AM
To: [EMAIL PROTECTED]
Subject: [ND] Filtering the values sent to the database...
Hello,
what is the easy way to filter the values that I'm sending to the
database?
I'm using the MS Access database and when a user enters the text in the
textbox that
contains " ' ", the text doesn't get inserted. So I would like to
replace the " ' " with " " ".
Here's the code that I have right now:
String articleText =
getDisplayFieldValue("dfArticleText").stringValue().trim();
new
CSpString(CSpUtil.replaceSubstring(articleText.toString(),"'","''"));
However, this doesn't work. Does anybody know what's wrong or how can
I do it better?
Thanks,
Rimma
________________________________________________________________________
_
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to:
http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]