Creating a string array in VB .Net

Posted by on June 15, 2012 in VB .Net | 0 comments

Just a quick post today. How to make a string array in VB .net PHP style. Now I know you can’t do associaitive arrays in .Net, but you can declare a string array without giving it a number and then declaring each index.

Dim strArray() as String = New String() {“Apples”, “Oranges”}
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>