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 

Parameter Not Found - Simple Data Set

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Ross Wise
Guest





PostPosted: Tue Apr 13, 2004 1:51 am    Post subject: Parameter Not Found - Simple Data Set Reply with quote



I am working on a D7 application connected to a IB6.5 Server.

My connection is establishing OK.

This Code:

sds_ClientHeaders.Params.ParamByName('ClientID').AsInteger := StrToInt(eFetchClientID.Text)

is creating the error:

"Project VESTA.exe raised exception class EDatabaseError with message "sds_ClientHeaders : Parameter 'ClientID' not found."



sds_ClientHeaders is a SimpleDataSet

with: InternalDataSet.CommandType = ctQuery
InternalDataSet.CommandText = SELECT * FROM D_CLIENT_HEADERS
WHERE "ClientID" = :ClientID ;

The InternalDataSet.Params edit window lists one entry:

0 - ClientID


FYI: eFetchClientID is TEdit field containing "20000" at the time of the error, a valid client ID for the database.



Any thoughts?

I'm new to Simple Data Sets; I though they were supposed to be easier :)


Ross Wise
WEAVE, Inc.
Sacramento, CA

PS: What would the syntax be to refer to the 'ClientID' parameter by it's index (0)? Is that possible? Would it help?


Back to top
Bill Todd (TeamB)
Guest





PostPosted: Tue Apr 13, 2004 4:07 am    Post subject: Re: Parameter Not Found - Simple Data Set Reply with quote



My advice is do not use TSimpleDataSet. Use separate CDS, DSP and
SQLDataSet components.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Ross Wise
Guest





PostPosted: Tue Apr 13, 2004 4:49 pm    Post subject: Re: Parameter Not Found - Simple Data Set Reply with quote



Bill,

That's the answer I expected. Smile)

Thanks.




Bill Todd (TeamB) wrote:
Quote:
My advice is do not use TSimpleDataSet. Use separate CDS, DSP and
SQLDataSet components.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) 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.