BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

param...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Marc Collin
Guest





PostPosted: Mon Aug 11, 2003 3:53 pm    Post subject: param... Reply with quote



hi

i try to do a query with params but it don't work

i tested in local but it don't work

i have a ibdataset (ibdVehicule)

it selectsql property is:

select * from TVEHICULE
where ANNEE = :ANNEE

a datasource (dsVehicule) and a datasetprovider (dspVehicule) is linked
to it...

i have another datasource (dscVehicule)

and a clientdataset (cdsVehicule)

the clientdataset is linked to: dspVehicule

the do a fetch param for the clientdataset

i try to search a record
i puted 2 edit box linked to clientdataset

when i do my search i do

cdsVehicule.Active := False;
cdsVehicule.Params[0].AsInteger := strtoint(Edit2.Text);
cdsVehicule.Open;

i tried whith the value 2002

nothing is returned to the editbox...
with sqlmonitor, i can see the value 2002

if i link the 2 edit box to the ibdatset, i get the record with the
value 2002...


why i don't work if the 2 edit box are linked with the clientdataset?

i have a litle program to see the problem, if you want

thanks

--
Borland rulez
http://pages.infinit.net/borland

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.