IT KNOWLEDGE

IT KNOWLEDGE
BC

Wednesday, May 21, 2014

How to Check Each Character in a String (VB.Net)

In this sample, I have a string="Visual Studio 2012" and I would like a message box show each character at each time(mean: the message will show one character at one time and when you click the OK button of message box, it will show the next character and do the same like this till the last character.)

      Dim WholeString As String = "Visual Basic 2012"
             Dim i As Integer
             For i = 0 To WholeString.Length - 1
                  WholeString.ToUpper()
                  MsgBox(WholeString.Chars(i))
            Next

next
|
|
|
|
|
last character



Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: itech-9999

0 comments: