🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Character ' causing a syntax error...

#3446
From: Robert A. Vasquez
Date: Sun, 25 Aug 2002 17:16
25 lines
1810 bytes
That worked.  Thanks for your help...


"MarkR" <mark.richards8@wapthespamntlworld.com> wrote in message
news:3d681cd4$1@newsgroups.borland.com...
> You will probably have to use a parameter then
>
> "Robert A. Vasquez" <rvasquez2001@yahoo.com> wrote in message
> 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: <3d691152$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!diablo.netcom.net.uk!netcom.net.uk!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> <3d681cd4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,c9672ab417972539
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-08-25 10:28:09 PST
From: "Robert A. Vasquez" <rvasquez2001@yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3d65c4ca$1@newsgroups.borland.com> <3d681cd4$1@newsgroups.borland.com>
Subject: Re: Character ' causing a syntax error...
Date: Sun, 25 Aug 2002 10:16:43 -0700
Lines: 27
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: <3d691152$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1030295890 67.114.247.73 (25 Aug 2002 10:18:10 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail