I need help, I can search SQLite for multiple keywords allright but what I need is to have an exact match based on whatever number of keywords that are used. May be 2 keywords or may be 3 keywords.
Example:
Search: fox crooked fence
The fox jumped the crooked old fence.
Example:
Search: fox crooked fence
The fox jumped the crooked old fence.
Code:
tblRS = SQLite.QueryToTable(db, "Select Long_Desc from Desc") tbl_Search = DelimitedStringToTable2(Input.GetText("Input1"), " "); if tblRS and tblRS.Rows then for i,v in tblRS.Data do for index1, word in tbl_Search do WordFound = nil; WordFound = String.Find(tblRS.Data[i]["Long_Desc"], word, 1, false); if WordFound > -1 then ListBox.AddItem("ListBox1", tblRS.Data[i]["Long_Desc"], ""); end end end end end
Comment