This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Exit Statements-Exit dont ever use-Exit for can be used for certain things-Exit Do - ?-Exit Function- essentially the same as Exit Sub-Exit Sub- good for validating bad dat and avoiding confusing nested loops If <condition if we have bad data, text Box #1> MessageBox.Show Reset Focus Exit Sub End If If <Condition if we have bad data, Text Box #2> MessageBox.Show Reset Focus Exit Sub End If 'Process data __________ __________ __________ End Sub -By using validators for bad data we get to the end to process data and dont have to nest together a ton of If then statements. Makes things much simpler. Exit sub pusheses out to the process data section that holds all my equation...
View Full Document
- Spring '08