Like if I had an else if or try catch statement. How can I stop specific lines of code from executing if the statement failed or caught an unhandled exception
I already posted the question before, so I'm just reformulating.
If you don't want the program to execute a certain line of code if the try catch fails, what would you do?
try
{
PRECIO = Convert.ToDouble(TBPRECIO.Text);
CANTIDAD = Convert.ToDouble(TBCANTIDAD.Text);
CATEGORIA = Convert.ToDouble(TBCATEGORIA.Text);
}
catch
{
MessageBox.Show("NO PUEDE HABER ESPACIOS VACIOS");
TBPRECIO.Focus();
}