I need to pass a series of strings to a routine. I would like to do this as an array or arraylist. I have the following code to add the items to the arraylist but can't figure out how to write the argument list for the function. This gives me an error: - Thanks in advance for the help.
private sub DoWork(aArrayList as arraylist)
'do work here
end sub
ArrayList below:
Dim aCPT As New ArrayList
aCPT.Add("10000")
aCPT.Add("10001")
aCPT.Add("20030")
call DoWork(aCPT)
private sub DoWork(aArrayList as arraylist)
'do work here
end sub
ArrayList below:
Dim aCPT As New ArrayList
aCPT.Add("10000")
aCPT.Add("10001")
aCPT.Add("20030")
call DoWork(aCPT)