Article View: borland.public.cppbuilder.database.ado
Article #3441Re: Character ' causing a syntax error...
From: Vassiliev V.V.
Date: Fri, 23 Aug 2002 06:29
Date: Fri, 23 Aug 2002 06:29
21 lines
1649 bytes
1649 bytes
Try AnsiQuotedStr(MyMemo->Lines->Text, "'") and remove "," at end.
Regards,
Vassiliev V.V.
http://www.oledbdirect.com
"Robert A. Vasquez" <rvasquez2001@yahoo.com> �������/�������� � ��������
���������: news:3d65c4ca$1@newsgroups.borland.com...
> I have a TMemo that whose contents I need to place in my table. I do this
by
> using:
>
> MyQuery->SQL->Add(" SET S.MyMemoField = '"+MyMemo->Lines->Text+"',");
>
> The problem is that if the Memo field contains the word "let's" it throw's
> off a syntax error.
>
> What would be the best way to allow such an entry to post correctly?
>
>
Technical Details
Message-ID:
<3d65d92a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3d65c4ca$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,c9672ab417972539 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-08-23 00:19:33 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3d65c4ca$1@newsgroups.borland.com> Subject: Re: Character ' causing a syntax error... Date: Fri, 23 Aug 2002 10:29:12 +0400 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.118.137.54 Message-ID: <3d65d92a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1030084906 62.118.137.54 (22 Aug 2002 23:41:46 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail