Below is my C# code
query = "Select german from words where polish='"+enteredword+"';";
command.CommandText = query;
datareader = command.ExecuteReader();
while (datareader.Read())
{
outword = datareader.GetString(1);
MessageBox.Show(outword);
}
I have a problem with this part of code. Im getting error "System.IndexOutOfRangeException" in this line
outword = datareader.GetString(1);
Where is the problem? I cant solve it