I have a question. What is the difference b/w the folliwng two syntaxes. I have a dll project named sortClass that contains a class called sortFuncs. When i add a reference to the class in vb6, i can use the following 2 syntaxes to create an object of that class. However, what is the difference between the two?
dim myobj1 as new sortfuncs
dim myobj1 as new sortClass.sortFuncs
MY second question is that while reading a vb .NET book I noticed that there were certain variables that were declared without the NEW keyword and certain had the new keyword. For example,
Dim myarraylist as arraylist
While in another example, an arraylist was declared as
Dim myarraylist as new arraylist
Isthere any difference?