🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Character ' causing a syntax error...

#3440
From: Robert A. Vasquez
Date: Fri, 23 Aug 2002 05:13
9 lines
1261 bytes
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: <3d65c4ca$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,c9672ab417972539,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-08-22 22:43:53 PST
From: "Robert A. Vasquez" <rvasquez2001@yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Character ' causing a syntax error...
Date: Thu, 22 Aug 2002 22:13:15 -0700
Lines: 11
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: <3d65c4ca$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1030079690 67.114.247.73 (22 Aug 2002 22:14:50 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail