ADO DOT NET Posted March 8, 2008 Posted March 8, 2008 I have an array here: Private AttachName() As String In my code probably I will add something to my array, and possible that I don't! However, how can I finally find out if the AttachName has anything inside or not? If AttachName.Length = Nothing Then ... I get error: 'System.NullReferenceException' What should I do?! Quote
Administrators PlausiblyDamp Posted March 8, 2008 Administrators Posted March 8, 2008 If Not AttachName is Nothing OrElse AttachName.Length > 0 Then will probably do what you need. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
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.