Hey guys,
I'm making a SIMPLE, and when I mean simple, I mean simple. But any way, I have this thing where, the person enters in a word, and it will preview a text file. I have everything setup even the text reader, but something unusual I get in my code is the "if statement". Whenever I type in the word into the textbox, it won't run the thing I want it to, instead it will go directly to the else and display the error message. This is the code I have:
If mainText.Text = "book" Then
startProcess()
ElseIf mainText.Text = "greet" Then //Just there for testing..
mainText.Text = "Hello there..."
Else
mainText.Text = "Please either enter a valid command."
End If
Now i looked into mainText.text and saw the value when entering the greet command..
{System.Windows.Forms.TextBox, Text: greet" & vbCrLf & "}
.. I don't really understand why this is happening.. All my other program work fine.
Can anyone help me solve this!??!
Thanks,
Kevin