| View previous topic :: View next topic |
| Author |
Message |
Alan T Guest
|
Posted: Tue Mar 27, 2007 8:11 am Post subject: Parameter value as null |
|
|
How do I assign a null value to a ADOQuery parameter? |
|
| Back to top |
|
 |
Mikael Eriksson Guest
|
Posted: Tue Mar 27, 2007 8:11 am Post subject: Re: Parameter value as null |
|
|
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
|
Posted: Sat Apr 07, 2007 5:54 pm Post subject: Re: Parameter value as null |
|
|
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
|
Posted: Sat Apr 07, 2007 8:41 pm Post subject: Re: Parameter value as null |
|
|
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
|
Posted: Mon Apr 23, 2007 4:59 pm Post subject: Re: Parameter value as null |
|
|
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
|
Posted: Mon Apr 23, 2007 5:50 pm Post subject: Re: Parameter value as null |
|
|
Make sure you have the Variants unit in your uses clause.
--
Bill Todd (TeamB) |
|
| Back to top |
|
 |
|