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?
thanks.
Code:
Function isPalendrome(ByVal Input As String, ByVal Reverse As String) As Boolean
isPalendrome = (Input = Reverse)
End Function
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!")
Else
MsgBox(Outcome, "Is Not Palindrome!")
End If
End Sub