J
Jon Vaughan
I get the error use of unassigned local variable dsDepartments from the
following ;
I'm sure the answer is simple , but i'm swapping over from VB.Net to C# and
im finding a few strange errors
public DataSet GetAllDepartments()
{
KitchenEngine.KitchenEngine2 objWebservice;
DataSet dsDepartments;
try
{
objWebservice = new KitchenEngine.KitchenEngine2();
dsDepartments = objWebservice.GetAllDepartments();
}
catch (System.Web.Services.Protocols.SoapException exp)
{
MessageBox.Show("Can't connect to the server.","Server Connection");
}
// Least specific:
catch (Exception exp2)
{
MessageBox.Show(exp2.Message,"General Error");
}
return dsDepartments;
}
following ;
I'm sure the answer is simple , but i'm swapping over from VB.Net to C# and
im finding a few strange errors
public DataSet GetAllDepartments()
{
KitchenEngine.KitchenEngine2 objWebservice;
DataSet dsDepartments;
try
{
objWebservice = new KitchenEngine.KitchenEngine2();
dsDepartments = objWebservice.GetAllDepartments();
}
catch (System.Web.Services.Protocols.SoapException exp)
{
MessageBox.Show("Can't connect to the server.","Server Connection");
}
// Least specific:
catch (Exception exp2)
{
MessageBox.Show(exp2.Message,"General Error");
}
return dsDepartments;
}