| View previous topic :: View next topic |
| Author |
Message |
Craig Andrews Guest
|
Posted: Tue Dec 30, 2003 7:14 pm Post subject: using .Clear with a stored prarm component |
|
|
Hello,
I was told to use the .clear and .bound methods to assign a null value to a
stored procedure parameter:
spInsert.Parameters.ParamByName('@FirstName').clear;
spInsert.Parameters.ParamByName('@FirstName').bound := True;
but I receive the error: Undeclared identifier: 'Clear'
Also CodeInsight doesn't offer a Clear property. I'm obviously doing
something wrong but I have no idea what.
Any help is greatly appreciated.
Thanks in advance,
Craig
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Tue Dec 30, 2003 11:20 pm Post subject: Re: using .Clear with a stored prarm component |
|
|
What data access components are you using? What component is spInsert?
I assume you are using SQL Server 2000, is that correct?
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
Craig Andrews Guest
|
Posted: Wed Dec 31, 2003 8:06 pm Post subject: Re: using .Clear with a stored prarm component |
|
|
Sorry, more info follows:
ADO components, SQL Server 2000
Craig
"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote
| Quote: | What data access components are you using? What component is spInsert?
I assume you are using SQL Server 2000, is that correct?
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
|
| Back to top |
|
 |
Craig Andrews Guest
|
Posted: Wed Dec 31, 2003 8:07 pm Post subject: Re: using .Clear with a stored prarm component |
|
|
neglected to include: spInsert is the name of the ADO Stored Procecude
component.
Craig
"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote
| Quote: | What data access components are you using? What component is spInsert?
I assume you are using SQL Server 2000, is that correct?
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Wed Dec 31, 2003 9:48 pm Post subject: Re: using .Clear with a stored prarm component |
|
|
Try
spInsert.Parameters.ParamByName('@FirstName').Value := Null;
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
craig Guest
|
Posted: Wed Dec 31, 2003 10:02 pm Post subject: Re: using .Clear with a stored prarm component |
|
|
Thanks for the reply! I would have bet money that I tried that and it
didn't work, but I just tried it again and it did, so all I can say is
"duh".
Thanks again for your help.
Craig
"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote
| Quote: | Try
spInsert.Parameters.ParamByName('@FirstName').Value := Null;
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
|
| Back to top |
|
 |
|