PC Review


Reply
Thread Tools Rate Thread

Arraylist not defined

 
 
tshad
Guest
Posts: n/a
 
      9th Aug 2005
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



 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      10th Aug 2005
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)


"tshad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>
>
>



 
Reply With Quote
 
tshad
Guest
Posts: n/a
 
      10th Aug 2005
"Bruce Barker" <brubar_nospamplease_@safeco.com> wrote in message
news:(E-Mail Removed)...
> 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
>
> -- bruce (sqlwork.com)
>
>
> "tshad" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>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
>>
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread-safety: Change property of items in arraylist versus removingitems from the arraylist Curious Microsoft Dot NET 2 6th Aug 2008 12:36 PM
serialization of user-defined class vs collection(arraylist, hasht =?Utf-8?B?UmVkIERldmls?= Microsoft Dot NET 0 11th Oct 2005 09:47 AM
Converting ArrayList to Array of user defined objects Dylan Parry Microsoft C# .NET 2 15th Sep 2005 12:01 PM
ArrayList(ICollection) constructor & overriden ArrayList.AddRange(). Sylvain Microsoft C# .NET 1 4th Jun 2005 01:19 AM
ArrayList.indexOf(self-defined class) paulyip Microsoft C# .NET 1 21st Jan 2005 06:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:42 PM.