Vb.net: clearing the entire contents of an array of strings

I have it:

    Dim split As String() = temp_string.Split(",")

    ''#feed all info into global variables
    patient_id = split(0)
    doc_name = split(1)
    lot__no = split(2)
    patient_name = split(3)

how to clear all split () contents?

+5
source share
4 answers
Array.Clear(split, 0, split.Length)
+13
source
ReDim split(-1)
+8
source

. , . , .

+5

Nothing, . , , .

split = Nothing

, , , , , , .

+4

All Articles