Dim DBh as new DBhandler vb.net 2.0 question

  • Thread starter Thread starter Bonzol
  • Start date Start date
B

Bonzol

I am trying to bring code over from 2003,
I am trying to do the following involving the following file
DBhandler.vb

Dim DBH as new DBhandler
DBH = new DBHhandler

works in 1.1, but not in 2.0

Any thoughts?
 
Bonzol,

Are you sure that you have set the reference as well in the 2005 version?
Assuming that this is a seperate dll.

Cor
 
Hello Bonzol


this is possible

Dim bla As New ClsFoo
bla = New ClsFoo

however it should better be written as

Dim bla As ClsFoo
bla = New ClsFoo

or just

Dim bla As New ClsFoo


Your construct works in my situation so i guess that you are missing the
class file in your project or there is an error in that class file


regards

Michel Posseth [MCP]
 
I am trying to bring code over from 2003,
I am trying to do the following involving the following file
DBhandler.vb

Dim DBH as new DBhandler
DBH = new DBHhandler

works in 1.1, but not in 2.0

You need to provide more information. What do you mean when you say it
doesn't work in 2.0? Are you getting an error of some sort? Does it
compile? Is the error only at runtime?
 
Back
Top