I have a case in which i need to execute a sequence of statements and want to do some error handing.
i don't care if any fail, i don't care which one failed, but i need to know that one failed, and they all need to be executed
i was thinking of using ON ERROR RESUME NEXT, but I can't figure out how to trap an error if it occured.
i don't want to use try / catch because that will jump out and leave the rest of the code un-executed.
below is the code i need to execute, essentially the only error that can occur is if any one of the values is out of range for the allowable indecies.
Contacts_MiscNotes.Text = r.Item(Contacts.MiscNotes)
Contacts_ContactCategory.SelectedIndex = CInt(r.Item(Contacts.CustomerCategory))
Contacts_ContactType.SelectedIndex = CInt(r.Item(Contacts.CustomerType))
Contacts_ContactAgent.SelectedIndex = CInt(r.Item(Contacts.AgentOf))
Contacts_PaymentTerms.SelectedIndex = CInt(r.Item(Contacts.Terms))
Contacts_StdDiscount.Text = r.Item(Contacts.StandardDiscount)
Contacts_FoundVia.SelectedIndex = CInt(r.Item(Contacts.ContactFoundVia))