about 'New'

  • Thread starter Thread starter learn
  • Start date Start date
I think when you use New when Dimming an object it actually creates an instance of that object all in one line, as opposed to VB6 when you would two lines:

Dim Object as Object
Set Object as new Object
 
One line can also be used in VB6, for example:

Dim c As New Collection
c.Add ("1234")
Print c(1)
 
Yes it can, but not for objects. It depends on whether you are declaring variables objects. Our company has moved over to C# now as its .Net language of choice. I must spend sometime to check out VB.Net too! :)
 
Back
Top