1. M using Visual Studio 2005 and I keep getting this warning in C# that The Variable 'DataSet1' is either undeclared or was never assigned. How do I solve that?
2.
private void btnDep_Click(object sender, EventArgs e)
{
try
if (txtAccNum.Text != "" && txtBal.Text != "" && txtBr.Text != "" && lstClient.Text != "")
double Bal, Acc, Br;
BillionBanking client = new BillionBanking();
Bal = client.ToString();
Acc = client.ToString();
Br = client.ToString();
lstClient = client.ToString();
txtBal.Text = "R " + c.ToString(Bal);
txtBr.Text = c.ToString(Br);
}
else
MessageBox.Show("Select The Correct Number!!");
catch (Exception client)
MessageBox.Show(client.Message.ToString());
From the above code I keep getting errors "Cannot implicitly convert type 'string' to 'double'. I have been advised to double.Parse yet it still doesn't work.
Thanks for your time!!