Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array List Question 1

Status
Not open for further replies.

shannanl

IS-IT--Management
Apr 24, 2003
1,071
US
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)
 
Hum, works for me too! I just have had something wrong in the original code. Thanks for double checking.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top