February 21st, 2014, 10:07 AM
Hi folks, just need some help with code :
need to create a code with isPalendrome function to check if given string is palendrome or not.
this is my code , something wrong in there. Could you please help?
Function isPalendrome(ByVal Input As String, ByVal Reverse As String) As Boolean
isPalendrome = (Input = Reverse)
Private Sub btnCheck_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheck.Click
Dim strInput As String
Dim StrReverse As String
Dim Outcome As String
strInput = txtString.Text
If Outcome = isPalendrome(strInput, StrReverse) Then
MsgBox(Outcome, "Is Palindrome!")
MsgBox(Outcome, "Is Not Palindrome!")
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!