This may be a stupid question, and if so, I apologize.
I'm trying to figure out the exact number of paths for a bit of code I'm working on in VB. I understand path testing. Mostly. But I come up short on IF statements with an ELSE condition that exits the sub.
My program just has 4 IF statements that check 4 text inputs with isnumeric. If they are numeric, everything continues, calculations are done, and results display in the labels. Everything is right with the world. If, however, an input isn't numeric, the ELSE part of the IF statements pop a text box about the problem and exit the sub to avoid errors. Are these ELSE statements individual paths, with the expected result of exiting the sub? Or is it only a path if the program continues on, whether to another IF statement or to the end display of the results?
I appreciate any clarification that can be provided.
Aucun commentaire:
Enregistrer un commentaire