Explain each of the following error handling methods used in Visual Basic programming language (6 marks)
i. Err.Number,
ii. Err.Clear,
iii. On Error-GoTo
Answer:
i)Err.Number is a property of the Err object that returns the numeric code associated with the most recent runtime error.
ii)Err.Clear is a method of the Err object that resets all properties of the Err object to their default values, effectively clearing the error.
iii)On Error GoTo is an error-handling statement that directs the program flow to a specified label if a runtime error occurs.