Check and return each character in a string- VB.NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

The following function gets each character in a word or a sentence and display it in a message box

Dim word1 As String = "Visual Basic"

Dim i As Integer

For i = 0 To word1.Length - 1

    MsgBox(word1.Chars(i))

Next

Output every time you hit "OK"

visual basic .net check and return each character
Check and return each character in a string- VB.NET
Check and return each character in a string- VB.NET


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.