quote:Originally posted by scandalous
cmd.Parameters.Add(new SqlParameter("@t_return", SqlDbType.VarChar, 255));
that line define it as a varchar..
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???
Read this if you want to know how to get a correct reply for your question:
^^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
I know that CVS was evil, and now i got the proof: