PPRuNe Forums - View Single Post - Why does VB .net have a constructor?
View Single Post
Old 12th Apr 2006, 00:02
  #1 (permalink)  
Onan the Clumsy

I'matightbastard
 
Join Date: Jul 2001
Location: Texas
Posts: 1,747
Likes: 0
Received 0 Likes on 0 Posts
Why does VB .net have a constructor?

I'm really having trouble coming to terms with this... Why do I have to type:

Dim custDS As DataSet = New DataSet("CustomerOrders")

why isn't it just

Dim custDS As DataSet
Set custDS = ("CustomerOrders")

Why does it need a New in there?

I mean Dim is a declaration, why doesn't that declare a new thingie for me?

Onan the Clumsy is offline