🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3444

Re: Character ' causing a syntax error...

#3444
From: Robert A. Vasquez
Date: Fri, 23 Aug 2002 18:28
31 lines
1929 bytes
I tried it and it still causes the syntax error.  Thanks for the try
though...


"Vassiliev V.V." <news@vassilievvv.mtu-net.ru> wrote in message
news:3d65d92a@newsgroups.borland.com...
> 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: <3d667f14$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3d65c4ca$1@newsgroups.borland.com> <3d65d92a@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 11:48:52 PST
From: "Robert A. Vasquez" <rvasquez2001@yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3d65c4ca$1@newsgroups.borland.com> <3d65d92a@newsgroups.borland.com>
Subject: Re: Character ' causing a syntax error...
Date: Fri, 23 Aug 2002 11:28:05 -0700
Lines: 33
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: 67.114.247.73
Message-ID: <3d667f14$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1030127380 67.114.247.73 (23 Aug 2002 11:29:40 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail