Write a program in Visual Basic to check whether a string is Palindrome or not.
A palindrome is any "word" which is the same forward and backward e.g. amma, radar, noon, 20011002 etc
Step-1 Drag & drop one Text box and one Command button on form.
Step-2 Write following code on the click event of command button:
Private Sub Command1_Click()
a = StrReverse(Text1.Text)
If a = Text1.Text Then
MsgBox "Given string is Palindrome"
Else
MsgBox "String is Not Palindrome"
End If
End Sub