Hi there!
I'm busy making an application (in Vb2005) which checks a chat line to see if there's a command in it..
so, When i am doing this, I want to make use of the Select Case statement..
This is my code so far:
But, here's the problem.. no matter how or what I try, whenever the message is "hi", the case ALWAYS returns false..
Can anyone support me in this action?
grt, Eowyne
I'm busy making an application (in Vb2005) which checks a chat line to see if there's a command in it..
so, When i am doing this, I want to make use of the Select Case statement..
This is my code so far:
Code:
Dim message as string = StrConv(Message, 2) 'Make it Lowercase
Dim Reply as String
Select Case Message
Case message.Contains("hi")
Reply = " Hello!"
end select
Can anyone support me in this action?
grt, Eowyne
Comment