🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Params and ADOQuery

#4447
From: Marshall
Date: Wed, 02 Jan 2002 07:04
16 lines
1327 bytes
When assigning values to parameters in ADOQuery I use

ADOQuery3->Parameters->ParamByName("ACode")->Value = editACode->Text;
or
ADOQuery3->Parameters->ParamByName("ACode")->Value =
editACode->Text.c_str();

both of whihc give me a error of being unable to define the param.
the only way I've found to get around this is to copy the edit boxes value
into a char array and then set the param to that.
any work arounds or is this just me?

ta

--
M
Technical Details
Message-ID: <3c32b114_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,4aff3e15a2c4b841,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-01-01 23:08:48 PST
From: "Marshall" <adworx@ihug.co.nz.spammenot>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Params and ADOQuery
Date: Wed, 2 Jan 2002 20:04:35 +1300
Lines: 18
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: 203.173.230.153
Message-ID: <3c32b114_2@dnews>
X-Trace: dnews 1009955092 203.173.230.153 (1 Jan 2002 23:04:52 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews