Prev: NetworkInformationException when calling GetAllNetworkInterfaces from a windows service
Next: set a single click event for a large group of buttons on a form?
From: Mark Rae [MVP] on 24 Dec 2009 09:22 "Dave" <Dave(a)noWeb.com> wrote in message news:325F62F9-0144-4421-BE19-BE0A982ED304(a)microsoft.com... > doesn't work. As has been pointed out, asking for help in a technical newsgroup because something "doesn't work" without explaining *how* it doesn't work will typically achieve nothing more than to generate replies of "In what way does it not work?", "What error message do you get?", "Help us to help you!", "We're not psychic!" etc You're lucky in this particular case, because all that's wrong is that you're missing a cast: int m_data= Convert.ToInt32(t_command.ExecuteScalar()); -- Mark Rae ASP.NET MVP http://www.markrae.net |