Hiya
I was woundering if anyone could help me. A few weeks ago i started using vb 5.0 and now im trying to make a code to determine if a word is a palindrome or not. The code that i have tried dose not work and i was woundering if any one could help.
Thanks
Private Sub cmdStart_Click( )
Dim inputWord As String
Dim reverseWord As String
inputWord = InputBox("Pleas e enter your word")
If inputWord = reverseWord Then
MsgBox "Yes, it's a palindrome"
Else
MsgBox "No, it's not a palindrome"
End If
End Sub
I was woundering if anyone could help me. A few weeks ago i started using vb 5.0 and now im trying to make a code to determine if a word is a palindrome or not. The code that i have tried dose not work and i was woundering if any one could help.
Thanks
Private Sub cmdStart_Click( )
Dim inputWord As String
Dim reverseWord As String
inputWord = InputBox("Pleas e enter your word")
If inputWord = reverseWord Then
MsgBox "Yes, it's a palindrome"
Else
MsgBox "No, it's not a palindrome"
End If
End Sub
Comment