Advertisement
calfred2808

Get the length of strings

Jun 23rd, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Module Module1
  2.  
  3. Sub Main()
  4.  
  5. Dim username As String
  6. Console.WriteLine("Your name: ")
  7. username = Console.ReadLine
  8. If username.Length = "10" Then
  9. Console.WriteLine("Your username has length of ten characters!!!!! ")
  10.  
  11. Else
  12. Console.WriteLine("Your username is not ten characters!")
  13. End If
  14.  
  15.  
  16. Console.ReadLine()
  17.  
  18. End Sub
  19.  
  20. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement