How do I determine the difference between two dates?

Posted by: Duncan Mackenzie, MSDNThis post applies to Visual Basic .NET 2002/2003 This common question is often phrased as “How do I find the number of hours between two dates?”, substituting minutes, seconds, days, or whatever interval you are looking for in the place of ‘hours’. Well, in Visual Basic .NET there are two main ways…

12

Workaround: Arrays with non-zero lower bounds

Posted by: Phil Weber, VB MVPThis post applies to Visual Basic .NET 2002/2003/2005 OK, now that Paul Vick has explained why VB.NET doesn’t support arrays with non-zero lower bounds, let’s see how we can do them anyway. 😉 Say you want to store a collection of annual values in an array of integers. It’s reasonable…

3

Why doesn't VB support non-zero lower bounds for arrays?

Posted by: Duncan Mackenzie, MSDNThis post applies to Visual Basic .NET 2002/2003/2005 Another answer from Paul Vick, Technical Lead on VB.NET, explaining the changes in array bounds from Visual Basic 6.0: Why doesn’t VB support non-zero lower bounds for arrays? … We allowed programmers to declare arrays that had bounds from 1 to 20, or…

1

Why did Visual Basic .NET introduce AndAlso and OrElse?

Posted by: Duncan Mackenzie, MSDNThis post applies to Visual Basic .NET 2002/2003/2005 Paul Vick, Technical Lead on VB.NET, and the author of the Visual Basic .NET Language Specification, discusses the new short-circuiting boolean operators added in Visual Basic .NET 2002. Why did we introduce AndAlso and OrElse? … Prior to VB.NET, the VB language only…

0

Operator Overloading?

Posted by: Phil Weber, VB MVPThis post applies to Visual Basic .NET 2005 (“Whidbey”) Gokhan Altinoren asks: What was the design decision behind the fact that VB.NET does not support operator overloading? Will this feature be in the VB.NET specification in the future? Sadly, the VB team failed to consult me while they were designing…

3