Article View: borland.public.cppbuilder.database.ado
Article #4450Re: Params and ADOQuery
From: Arnie Mauer
Date: Wed, 02 Jan 2002 15:13
Date: Wed, 02 Jan 2002 15:13
22 lines
1468 bytes
1468 bytes
Don't use single quotes around the :parameters.
"Marshall" <adworx@ihug.co.nz.spammenot> wrote in message
news:3c32b114_2@dnews...
> 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:
<3c3323ad_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!KWeb!dnewsReferences:
<3c32b114_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,4aff3e15a2c4b841 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-01-02 07:19:30 PST From: "Arnie Mauer" <amauer@vrms.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3c32b114_2@dnews> Subject: Re: Params and ADOQuery Date: Wed, 2 Jan 2002 10:13:49 -0500 Lines: 24 Organization: VRMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 209.140.211.97 Message-ID: <3c3323ad_2@dnews> X-Trace: dnews 1009984429 209.140.211.97 (2 Jan 2002 07:13:49 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!KWeb!dnews