Why can’t I check if a ‘DateTime’ is ‘Nothing’?

This is one of the biggest sources of confusion with VB.Net, IMO. Nothing in VB.Net is the equivalent of default(T) in C#: the default value for the given type. For value types, this is essentially the equivalent of ‘zero’: 0 for Integer, False for Boolean, DateTime.MinValue for DateTime, … For reference types, it is the … Read more

IsNothing versus Is Nothing

If you take a look at the MSIL as it’s being executed you’ll see that it doesn’t compile down to the exact same code. When you use IsNothing() it actually makes a call to that method as opposed to just evaluating the expression. The reason I would tend to lean towards using “Is Nothing” is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)