Article View: borland.public.cppbuilder.database.multi-tier
Article #27Problem with TDatabase and TParams
From: pascal
Date: Fri, 10 Oct 2003 07:20
Date: Fri, 10 Oct 2003 07:20
28 lines
1693 bytes
1693 bytes
Hi,
I've got problem with TDatabase et TParams.
In this code
TParams *Params = new TParams();
hDBICur Cursor;
try {
Params->CreateParam(ftString, "Pr_Code", ptInput);
Params->CreateParam(ftString, "Pr_Caption", ptInput);
Params->Items[0]->AsString=AnsiString(Code);
Params->Items[1]->AsString=Pr_Caption->Text;
SqlCmd="Insert into Project (Pr_Code,Pr_Caption,Pr_BgImage) Values
(:Pr_Code,:Pr_Caption,'N')";
DbMkt->Execute(SqlCmd,Param,false,&Cursor);
} __finally {
delete Params;
}
He says 'I dont find the object' !
Why ?
And how can I use hDBICur
Thank's
Technical Details
Message-ID:
<3f865dbc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!news-out.superfeed.net!propagator2-maxim!news-in-maxim.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,ea371552ff616724,start X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2003-10-10 00:29:23 PST Date: Fri, 10 Oct 2003 09:20:34 +0200 From: pascal <pascal.conrad@actavision.fr> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.4) Gecko/20030624 X-Accept-Language: fr, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Problem with TDatabase and TParams Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.36.213.205 Message-ID: <3f865dbc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065770428 213.36.213.205 (10 Oct 2003 00:20:28 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!news-out.superfeed.net!propagator2-maxim!news-in-maxim.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail