Finding out your local IP in VB .net under IIS 7

If you’re looking for your IP address of your website chances are you know if, but in case you don’t, there are 2 ways to find it. There are also 2 different IP addresses you might be looking for. There’s a local IP address, then the IP address that the outside world sees and can access your web server on. Here’s a VB .net code section to find your internal IP address, IE, your local IP address of the website on the...

Read More

Creating a string array in VB .Net

Just a quick post today. How to make a string array in VB .net PHP style. Now I know you can’t do associaitive arrays in .Net, but you can declare a string array without giving it a number and then declaring each index. Dim strArray() as String = New String() {“Apples”, “Oranges”}

Read More

Split a string apart into an array in VB .Net

I like using the Split function to break apart strings, but you’re forced to have a delimiter then. Passing it an empty string won’t return each character. If you want to convert a string into an array of characters so you can loop over each one, the solution is quite simple. Use the following code. Dim charArr() As Char = myString.ToCharArray

Read More