When creating the VB PRoject ADD a REFERENCE to Ultrahalassist.dll
not add Component...
Option explicit
Public UhBrain as NEW Brain
Private Sub Command1_Click()
'Remember that the brain you are using Should be UHAL5
'If you are ussing uhal6 then your HALBRAIN.db should be in the same folder where the project is compiled. in vb the halbrain.db may also need to be in the defalt project directory for on the fly testing....
Text1 = UhBrain.ChooseSentenceFromFile("paraphrase") 'hal6
End Sub
I have found that using the hal5 dll works the best as the hal.db file is not easy to Browse. where as the hal5 dll works fine with textfiles .... And you can use ADO, in VB so you can customize you db more better in MSACESS, Which also uses SQL to search the DB for data{QUERY}...