lonewolf32
09-05-2003, 09:22 AM
Is there any difference in the following two declarations?
Dim myobject as New Class1
Dim myobject as New Lib1.Class1
Thanks
Dim myobject as New Class1
Dim myobject as New Lib1.Class1
Thanks
Question about Newing objectslonewolf32 09-05-2003, 09:22 AM Is there any difference in the following two declarations? Dim myobject as New Class1 Dim myobject as New Lib1.Class1 Thanks Thinker 09-05-2003, 09:45 AM Yes, if there is more than one library referenced in the project with a class named Class1, the second will explicitly tell which one you intend to create. This happens more commonly than people realize. Especially when dealing with data access components or the common control libraries. lonewolf32 09-05-2003, 10:49 AM Yes, if there is more than one library referenced in the project with a class named Class1, the second will explicitly tell which one you intend to create. This happens more commonly than people realize. Especially when dealing with data access components or the common control libraries. good point. so its more like a good coding guideline then a necessity. Thinker 09-05-2003, 10:54 AM Yes, until you hit that point where the libraries collide, then it is a necessity. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum