By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,268 Members | 1,293 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,268 IT Pros & Developers. It's quick & easy.

Test an Array to see if its been "ReDim"

P: n/a
tm
I have created an array as follows:

Public pPrintList() as String

How can I test it to see if it has
been initialized with an element (ReDim pPrintList(12) )
with out causing "NullReferenceException" error
if no elements exist
Feb 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
>How can I test it to see if it has
been initialized with an element (ReDim pPrintList(12) )


If Not pPrintList Is Nothing Then ...
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Feb 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.