I want to be able to add textboxes - even if one is empty- is there any type of function in C# like NZ?
is there a way to add to code example below?
private void button1_Click(object sender, EventArgs e)
double firstDay, secondDay,thirdDay,fourthDay,fifthDay,Total;
firstDay = double.Parse(textBox1.Text);
secondDay = double.Parse(textBox2.Text);
thirdDay = double.Parse(textBox3.Text);
fourthDay = double.Parse(textBox4.Text);
fifthDay = double.Parse(textBox5.Text);
Total = firstDay + secondDay + thirdDay + fourthDay + fifthDay;
textBox6.Text = "the total is" + Total;