| View previous topic :: View next topic |
| Author |
Message |
Craig Stuntz [TeamB] Guest
|
Posted: Wed Dec 10, 2003 7:50 pm Post subject: Re: Writing null with Stored Procedure component |
|
|
Kevin Frevert wrote:
| Quote: | Try spInsert.Parameters['FirstName'].Clear;
|
...followed by .Bound := TRUE (see Help).
-Craig
--
Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
Delphi/InterBase Weblog : http://delphi.weblogs.com
How to ask questions the smart way:
http://www.catb.org/~esr/faqs/smart-questions.html
|
|
| Back to top |
|
 |
Craig Andrews Guest
|
Posted: Wed Dec 10, 2003 7:56 pm Post subject: Writing null with Stored Procedure component |
|
|
Hello,
How do I assign the value of Null to a stored procedure component
paramenter?
spInsert.Parameters['FirstName'].Value := Null; does not work
Thanks in advance,
Craig
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Wed Dec 10, 2003 8:11 pm Post subject: Re: Writing null with Stored Procedure component |
|
|
MySP.ParamByName('AParam').Clear;
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
Kevin Frevert Guest
|
Posted: Wed Dec 10, 2003 8:11 pm Post subject: Re: Writing null with Stored Procedure component |
|
|
Craig,
Try spInsert.Parameters['FirstName'].Clear;
Good luck,
krf
"Craig Andrews" <craig (AT) radicalage (DOT) com> wrote
| Quote: | Hello,
How do I assign the value of Null to a stored procedure component
paramenter?
spInsert.Parameters['FirstName'].Value := Null; does not work
Thanks in advance,
Craig
|
|
|
| Back to top |
|
 |
craig Guest
|
Posted: Thu Dec 11, 2003 6:13 am Post subject: Re: Writing null with Stored Procedure component |
|
|
Thank you all!
"Craig Andrews" <craig (AT) radicalage (DOT) com> wrote
| Quote: | Hello,
How do I assign the value of Null to a stored procedure component
paramenter?
spInsert.Parameters['FirstName'].Value := Null; does not work
Thanks in advance,
Craig
|
|
|
| Back to top |
|
 |
Craig Andrews Guest
|
Posted: Mon Dec 15, 2003 11:44 pm Post subject: Re: Writing null with Stored Procedure component |
|
|
Thanks for the help.
I've tried spInsert.Parameters.ParamByName('FirstName').Clear; and
spInsert.Parameters[1].clear; but both result in a Undeclared identifer:
'Clear' error. I seem to be missing something obvious, sorry.
Is there an "include" file other than ADODB and DB ?
Thanks again,
Craig
"Craig Andrews" <craig (AT) radicalage (DOT) com> wrote
| Quote: | Hello,
How do I assign the value of Null to a stored procedure component
paramenter?
spInsert.Parameters['FirstName'].Value := Null; does not work
Thanks in advance,
Craig
|
|
|
| Back to top |
|
 |
|