How to clear an array of string

I have create an array of string however I can;t seem to find a way to clear the array values? can anyone help?

 tempArray() As String
cmdolcetAsked:
Who is Participating?
 
bhmahlerCommented:
You can use Array.Clear
Dim s As String() = {"A", "B", "C"}
Array.Clear(s, 0, s.Length)

Open in new window

0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Do you need to clear (reset) the fields?...or actually make the array "empty" (have no elements in it at all).

If the latter, then use List(Of String) instead:
http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.