Search found 1 match

by paripalu
28.08.2010, 09:11
Forum: User Patches
Topic: Patch for TZASAResultSet
Replies: 2
Views: 1225

You can't call ToString on a null reference in C#, it throws a NullReferenceException.
You would need to do this:
Object o = cmd.ExecuteScalar();
if(o != null)
ss = o.ToString();
else
// Not Found code here.
==================
Best Life Insurance | Buy Life Insurance