I tried to declare a HasTable in my sub and get "Type Expected" error. What
am I doing wrong.

Dim ht as New HasTable

Re: HashTable Question by hirf-spam-me-here

hirf-spam-me-here
Fri Jun 04 16:18:09 CDT 2004

* "Jack Handy" <kixman@excite.com> scripsit:
> I tried to declare a HasTable in my sub and get "Type Expected" error. What
> am I doing wrong.
>
> Dim ht as New HasTable

It's spelled 'Hashtable'!

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Re: HashTable Question by Jack

Jack
Fri Jun 04 17:04:25 CDT 2004

Thanks for catching the typo, but I'm sure you understand what I meant, can
you help with the question?

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:2ic791FlermbU1@uni-berlin.de...
> * "Jack Handy" <kixman@excite.com> scripsit:
> > I tried to declare a HasTable in my sub and get "Type Expected" error.
What
> > am I doing wrong.
> >
> > Dim ht as New HasTable
>
> It's spelled 'Hashtable'!
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



Re: HashTable Question by hirf-spam-me-here

hirf-spam-me-here
Fri Jun 04 18:32:38 CDT 2004

* "Jack Handy" <kixman@excite.com> scripsit:
> Thanks for catching the typo, but I'm sure you understand what I meant, can
> you help with the question?

Make sure the namespace 'System.Collections' is imported:

VB.NET: 'Imports System.Collections'.
C#: 'using System.Collections;'.

... on top of the source file.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>