ednayap Posted August 17, 2003 Posted August 17, 2003 hie.. anyone know how to find out if cmd.ExecuteScalar() is empty? tanx a lot Quote ##EYPS##
bungpeng Posted August 18, 2003 Posted August 18, 2003 ExecuteScalar is empty? I can't get what you mean. Because ExecuteScalar is only performance the insert, update and delete but not select, so it won't return any records to you. Quote
*Gurus* Derek Stone Posted August 18, 2003 *Gurus* Posted August 18, 2003 Dim o As Object = cmd.ExecuteScalar() If Not o Is Nothing Then 'A value was returned Else 'No value was returned End If Quote Posting Guidelines
bungpeng Posted August 18, 2003 Posted August 18, 2003 Oh, yes! sorry, I thought ExecuteScalar was ExecuteNonQuery... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.