The ClevelandDotNet Blog is created to serve all .Net developers, both in Cleveland and elsewhere. Various .Net questions, events, and technical topics of interest will be posted regularly.
File Extensions
Get link
Facebook
Twitter
Pinterest
Email
Other Apps
For a comprehensive list of file extensions and their representation, visit http://www.filext.com. The site contains more extensions then you shake a mouse at!
Q: How can I use VB Script to display the first 3 octets in a TCP/IP address? A: Since IP addresses are not fixed length, you will have to count the number of separators before you can extract the octets. With that said, listed below is the sample VB Script code. strIP = inputbox("Enter an IP Address for testing to extract the first 3 Octets:") intLastDecimal = 1 For intCounter = 1 to 3 intLastDecimal = InStr(intLastDecimal, strIP, ".") + 1 Next iNewLength = intLastDecimal-2 strNewIP = Left(strIP, iNewLength ) MsgBox "strNewIP=" & strNewIP To run this code, simply copy and paste it into a flat file and name it with a .VBS extension. For more resources on VB Scripting, please visit the following links: http://msdn2.microsoft.com/en-us/library/3ca8tfek.aspx http://msdn2.microsoft.com/en-us/library/ms974570.aspx http://www.w3schools.com/vbscript/vbscript_ref_functions.asp
String manipulation in VB2005 is fairly simple. However, things can get a little tricky with the double quote character. How do you look for it in a string? How can you insert into a string? How do you remove it from a string? These are questions that may lead to confusion if you don't know what you're looking for. Ironically enough, in VB the double quote can also be used as an escape character when searching for it in a string. For example: Dim strTest As String strTest = """123""" 'Displays "123" (double quotes appear in the final result) strTest = """""123""" 'Displays ""123" (double quotes appear in the final result) strTest = "test\""test" 'Displays test\"test strTest = "test""test" 'Displays test"test In cases where you want to insert a double quote character, simply reference it unicode character designation, ch
I would like to thank Guy Royse (DataRobot) for presenting "Machine Learning for Gamers" at the last meeting of the Cleveland C#/VB.Net User Group Listed below are the links for the presentation recording and events in area/region. Presentation Recording : https://www.youtube.com/channel/UCU4ffaIzhsvMr_cCt9kjQMw Local Events Nov 6: ONSQL-Cleveland( https://www.meetup.com/Ohio-North-SQL-Server-User-Group-Cleveland/ ) Nov 21: Hudson SC ( https://www.meetup.com/Hudson-Software-Craftsmanship-Meetup/ ) Nov 29: Cleveland C#/VB.Net User Group( https://www.meetup.com/Cleveland-C-VB-Net-User-Group/ ) Regional Events Oct 19-21: SpaceApps Cleveland Hackathon ( https://2018.spaceappschallenge.org/locations/cleveland-oh/ ) Oct 20: Cleveland Medical Hackathon ( http://clevelandmedicalhackathon.com ) Oct 27: Columbus Code Camp ( https://columbuscodecamp.com/ ) Nov 3: NuGet Essentials ( https://www.eventbrite.com/e/nuget-essentials-tickets-48803794463 )
Comments