Quote:
quote:Originally posted by scandalous
cmd.Parameters.Add(new SqlParameter("@t_return", SqlDbType.VarChar, 255));
|
that line define it as a varchar..
Quote:
quote:
How would I make it Varchar? I thought this code
string t_return = cmd.Parameters["@t_return"].Value.ToString();
converted the varchar ToString ?
|
that code transform the object to a string.. maybe the object there is not a string??
I ask again.. which line is throwing the error????
if you trace the code.. where the compiler informs you of the error???
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========