Vbasic help!

Newb

New member
Joined
Nov 24, 2012
Messages
1
Programming Experience
Beginner
I am working on a AI bot or a chat program where the user asks a question and computer answers it.
I want to put a train option in it.
It should work like this-
WHen the user clicks the train button,a dialog or a new form appears with two fields(question& answer)
and then after both fields are filled the user clicks submit button and data is saved.
after the user that particular question again,my program searchs the datasource for the question and it's answer and then it speaks out the answer.

Here's is what I want help in-
1.To find a datasource where the form saves data
2.A way by which the program searchs for a question and speaks out the answer

I know how to make computer to speak things but I want a way by which it searches the data source for the question and speaks its answer



eg-
Question-How are you?
Answer-I am fine.
Now when I ask this question to the program by means of textbox and ask button
it should search the data source and then speak out the answer
The difficulty that how to make the program find the question and speak the answer is also there
any help would be appreciated

Please provide example code while replying thank you

Also,Can somebody tell me what is the difference between vbasic and vb.net?
 
You simply need to choose a database and then use ADO.NET to save and retrieve data. You can use Access or SQL Server Express or any other database you want. ADO.NET works in pretty much exactlyou just want to foindy the same way regardless. You'll need to decide how close a match the user needs to provide to the question in order to find it. If it has to be exact then that's easy. If you just want to find close matches then that's harder and slower. In that case you'd probably want to use a "proper" database like SQL Server Express and then enable Full Text Search to speed up your queries.
 
Back
Top