Advertisement
TermSpar

String Methods

Dec 9th, 2015
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.46 KB | None | 0 0
  1. Public Class frmStringMethods
  2.  
  3.     Private Sub btnEnter_Click(sender As System.Object, e As System.EventArgs) Handles btnEnter.Click
  4.         Dim userInput As String
  5.         Dim secondInput As String
  6.         Dim beforeInput As String
  7.         userInput = txtInput.Text.Split("/")(1).Substring(0, 1)
  8.         secondInput = txtInput.Text.Split("/")(2)
  9.         beforeInput = txtInput.Text.Split("/")(0)
  10.         lblDisplay.Text = userInput
  11.     End Sub
  12. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement