Hello, its me again, but with a different application - I am making a ChatBot.
So, basically, its quite simple. You say something and it looks for an answer.
And one of the inputs it knows is "my name is ____" and it responds with "Nice to meet you, " + StrLastWord + "!" And it makes it so the last word of the input is the sentence.
s = Split(TextBox1.Text, " ")
strLastWord = s(UBound(s))
This is what makes it identify the last word of a sentence.
Dim Username as String = Nothing
This is what the username is until the user says to the chatbot his name.
So what i want to do is so when someone says, lets say, "My Name Is Duncan", The ChatBot will remember the last word of that input (strlastword) As his name, will know that Username = The last word (duncan), and will remember his name so if it asks it a question, the chat bot will respond "Its blablabla, Duncan." How do i make it remember? Thanks.