HashTable Question

  • Thread starter Thread starter Jack Handy
  • Start date Start date
J

Jack Handy

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

Dim ht as New HasTable
 
* "Jack Handy said:
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'!
 
Thanks for catching the typo, but I'm sure you understand what I meant, can
you help with the question?
 
* "Jack Handy said:
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.
 

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

Back
Top