🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to get TAdoQuery->SQL->Text with the parameter's values ?

#1616
From: Bruno GAUTIER
Date: Wed, 02 Jun 2004 14:56
15 lines
1294 bytes
Hello,
I'm using BCB 6.0.

I have this query :

myQuery->SQL->Text ="select * from mytable where myid = :val"
myQuery->ParamValues["val"] = 10

How can I obtain a string containing this value :
"select * from mytable where myid = 10"
where each parameter is replaced with the value.

Thanks

Bruno
Technical Details
Message-ID: <40bdea7c$0$12757$636a15ce@news.free.fr>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder2-1.proxad.net!news6-e.free.fr!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,e39cfdb67a848bb,start
X-Google-Attributes: gid10698b,public
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder2-1.proxad.net!news6-e.free.fr!not-for-mail
From: "Bruno GAUTIER" <bruno.gautier_NOSPAM@basystemes.fr>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to get TAdoQuery->SQL->Text with the parameter's values ?
Date: Wed, 2 Jun 2004 16:56:34 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Lines: 19
Message-ID: <40bdea7c$0$12757$636a15ce@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 02 Jun 2004 16:55:56 MEST
NNTP-Posting-Host: 217.167.0.1
X-Trace: 1086188156 news6-e.free.fr 12757 217.167.0.1:25604
X-Complaints-To: abuse@proxad.net