Member Avatar for iamthwee

How do I pass an arrayList to a function?

Hi, I think more detail required

But some guess

If you have function like this

Public Function ProcessArrayList(ByVal AL As ArrayList) As ArrayList
        AL.Add("Good")
        Return AL
    End Function

you can pass Array list like

Dim AL As ArrayList = New ArrayList
        ProcessArrayList(AL)
        MessageBox.Show(AL.Count)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.