HTTP GET in VB.NET

In VB.NET: Dim webClient As New System.Net.WebClient Dim result As String = webClient.DownloadString(“http://api.hostip.info/?ip=68.180.206.184”) In C#: System.Net.WebClient webClient = new System.Net.WebClient(); string result = webClient.DownloadString(“http://api.hostip.info/?ip=68.180.206.184”);

How to use comparison methods between class object modules in VBA in a similar manner as VB.NET?

VBA doesn’t support class polymorphism so I recommend to change the way you’re thinking about the Employee and Manager classes. You can’t have an Employee class as a base class and then a separate Manager class that derives from Employee. They could be 2 separate classes implementing a common interface. I will talk about it … Read more

ByRef vs ByVal Clarification

I think you’re confusing the concept of references vs. value types and ByVal vs. ByRef. Even though their names are a bit misleading, they are orthogonal issues. ByVal in VB.NET means that a copy of the provided value will be sent to the function. For value types (Integer, Single, etc.) this will provide a shallow … Read more

Or versus OrElse

OrElse is a short-circuiting operator, Or is not. By the definition of the boolean ‘or’ operator, if the first term is True then the whole is definitely true – so we don’t need to evaluate the second term. OrElse knows this, so doesn’t try and evaluate temp = 0 once it’s established that temp Is … Read more