Hi ishtine18, welcome on Daniweb!
Could you post some code?
Without it it is hard to solve your problem.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
Please use code tags when you send some code.
Isn't it a problem you use both "llocano" and "llokano"?
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
int LastSep=0;
for (int i=0; i< textBox1.Text.Length;i++)
{
if (textBox1.Text[i] == ' ')
{
label5.Text += new OleDbCommand("Select English FROM Dictionary where Ilokano like" + "'%" + textBox1.Text.SubString(LastSep,i-LastSep) + "%'", conn).ExecuteScaler().toString() + " ";
LastSep=i;
}
if (i == textBox1.Text.Length-1 && textBox1.Text[textBox1.Text.Length-1] != ' ')
{
label5.Text += new OleDbCommand("Select English FROM Dictionary where Ilokano like" + "'%" + textBox1.Text.SubString(LastSep,i-LastSep) + "%'", conn).ExecuteScaler().toString();
}
}
Try this
I didn't have a compiler so there maybe syntax errors
Please let me know if you need clarification
I don't see where you opened the Connection
finito
Nearly a Posting Virtuoso
1,321 posts since May 2010
Reputation Points: 60
Solved Threads: 135