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 value as null

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Alan T
Guest





PostPosted: Tue Mar 27, 2007 8:11 am    Post subject: Parameter value as null Reply with quote



How do I assign a null value to a ADOQuery parameter?
Back to top
Mikael Eriksson
Guest





PostPosted: Tue Mar 27, 2007 8:11 am    Post subject: Re: Parameter value as null Reply with quote



Alan T skrev:
Quote:
How do I assign a null value to a ADOQuery parameter?


ADOQuery1.Parameters[0].Value := Null;


/Micke
Back to top
Alan T
Guest





PostPosted: Sat Apr 07, 2007 5:54 pm    Post subject: Re: Parameter value as null Reply with quote



I got a compilation error of undeclared identifier:
ADOQuery1.Parameters.ParamByName('DateLeft').Value := Null;


"Mikael Eriksson" <micke314 (AT) gmail (DOT) com> wrote in message
news:4608bba3$1 (AT) newsgroups (DOT) borland.com...
Quote:
Alan T skrev:
How do I assign a null value to a ADOQuery parameter?
ADOQuery1.Parameters[0].Value := Null;

/Micke
Back to top
Bill Todd
Guest





PostPosted: Sat Apr 07, 2007 8:41 pm    Post subject: Re: Parameter value as null Reply with quote

Alan T wrote:

Quote:
I got a compilation error of undeclared identifier:
ADOQuery1.Parameters.ParamByName('DateLeft').Value := Null;

Which identifier?

--
Bill Todd (TeamB)
Back to top
Alan T
Guest





PostPosted: Mon Apr 23, 2007 4:59 pm    Post subject: Re: Parameter value as null Reply with quote

Hi, that's the NULL.

"Bill Todd" <no (AT) no (DOT) com> wrote in message
news:4617ada6$1 (AT) newsgroups (DOT) borland.com...
Quote:
Alan T wrote:

I got a compilation error of undeclared identifier:
ADOQuery1.Parameters.ParamByName('DateLeft').Value := Null;

Which identifier?

--
Bill Todd (TeamB)
Back to top
Bill Todd
Guest





PostPosted: Mon Apr 23, 2007 5:50 pm    Post subject: Re: Parameter value as null Reply with quote

Make sure you have the Variants unit in your uses clause.

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