MySQL Forums
Forum List  »  MySQL Query Browser

Re: Column can not be null
Posted by: Chad Bourque
Date: January 13, 2010 05:44PM


Try changing the last line to:

Label4.Text = DR.GetInt32(1).ToString();

The column ordinals are 1 based, not 0 based if I'm not mistaken.

I've not used ExecuteScalar() before.


Options: ReplyQuote

Written By
January 11, 2010 04:37PM
January 11, 2010 07:53PM
January 12, 2010 03:07AM
January 12, 2010 09:03AM
January 12, 2010 05:22PM
January 12, 2010 06:39PM
Re: Column can not be null
January 13, 2010 05:44PM
January 14, 2010 09:44AM
January 14, 2010 06:28PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.