M
Mick Walker
string eAddress;
try
{
adapter.Fill(myDataset);
foreach (DataRow row in myDataset.Tables[0].Rows)
{
if (row["EmailAddress"] != DBNull.Value)
eAddress = (string)row["EmailAddress"];
myMLst.Add(eAddress );
}
}
.... etc etc
I get the error message:
Error 6 Use of unassigned local variable 'eAddress'
try
{
adapter.Fill(myDataset);
foreach (DataRow row in myDataset.Tables[0].Rows)
{
if (row["EmailAddress"] != DBNull.Value)
eAddress = (string)row["EmailAddress"];
myMLst.Add(eAddress );
}
}
.... etc etc
I get the error message:
Error 6 Use of unassigned local variable 'eAddress'