Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
Public Function midReturn(ByVal first As String, ByVal last As String, ByVal total As String) As String If last.Length < 1 Then midReturn = total.Substring(total.IndexOf(first)) End If If first.Length < 1 Then midReturn = total.Substring(0, (total.IndexOf(last))) End If Try midReturn = ((total.Substring(total.IndexOf(first), (total.IndexOf(last) - total.IndexOf(first)))).Replace(first, "")).Replace(last, "") Catch ArgumentOutOfRangeException As Exception End Try End Function Private Sub btnClip_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClip.Click txtName.Text = midReturn("/", "", txtLink.Text) End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.