string eAddress;
try
{
adapter.Fill(my Dataset);
foreach (DataRow row in myDataset.Table s[0].Rows)
{
if (row["EmailAddre ss"] != DBNull.Value)
eAddress = (string)row["EmailAddre ss"];
myMLst.Add(eAdd ress );
}
}
.... etc etc
I get the error message:
Error 6 Use of unassigned local variable 'eAddress'
try
{
adapter.Fill(my Dataset);
foreach (DataRow row in myDataset.Table s[0].Rows)
{
if (row["EmailAddre ss"] != DBNull.Value)
eAddress = (string)row["EmailAddre ss"];
myMLst.Add(eAdd ress );
}
}
.... etc etc
I get the error message:
Error 6 Use of unassigned local variable 'eAddress'
Comment