Arraylist not defined


T

tshad

I have an email class that I was adding an array list to and it is giving me
a "not defined" error.

Here is my Make file:

vbc /t:library email.vb /r:system.web.dll /r:system.data.dll /r:system.dll
/r:Microsoft.VisualBasic.dll

copy email.dll bin\*.*

These are all my imports.

Imports System
Imports System.Web
Imports System.IO
Imports System.Web.UI
Imports System.Web.SessionState
Imports System.Web.Mail
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.HttpCookie
Imports System.Web.HttpCookieCollection
Imports System.Web.HttpResponse
Imports System.Web.HttpRequest
imports System.Web.HttpContext
Imports System.Web.HttpApplication
Imports System.Web.HttpApplicationState
Imports Microsoft.VisualBasic

And this is the definition of the ArrayList being passed:

Public Shared sub sendEmail (SendTo as String, Subject as String, body as
string, emailType as string, emailTitle as String, parameters as ArrayList)

as well as the usage:

strInput = strInput.replace(parameters(0),parameters(1))

What am I missing?

Thanks,

Tom
 
Ad

Advertisements

B

Bruce Barker

if you look in the docs at the ArayList overview, you will see it is in the
System.Collections namespace, so you need to add an import or fully qualify
the name. the overview of any class lists the namespace.

-- bruce (sqlwork.com)
 
Ad

Advertisements

T

tshad

Bruce Barker said:
if you look in the docs at the ArayList overview, you will see it is in
the System.Collections namespace, so you need to add an import or fully
qualify the name. the overview of any class lists the namespace.

That was it.

Which docs do I look at?

Thanks,

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top