16 Jun '14

Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

0 Shares

Reverse string in VB.NET

Reverse string in VB.NET

In VB.NET  you can reverse a string using the StrReverse function. But this source code demonstrates to you how you can reverse string using for loop. 

Here is the source code:

Dim input As String
Dim result As String = “”
Dim len As Integer
Dim a, b As Integer
input = TextBox1.Text
len = input.Length
a = len – 1
For b = 0 To a
result = result & input.Chars(a)
a = a – 1
Next
TextBox2.Text = result

Video demostration:

Download source code:

download source code

About Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

Related Posts

Leave a Reply