Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Methods Reference for Siebel VB > Error Handling Methods > Set Error Code MethodThe Set Error Code method sets a run-time error code. It does not return a value. You can use it to send error information between procedures. FormatThe following table describes the arguments that you can use with this method.
ExampleThe following example creates an error code of 10000 and displays an error message if the user does not enter a customer name in reply to a prompt. It uses the Err statement to clear any previous error codes before it runs the loop for the first time. It also clears the error to allow the user to try again: Sub Button_Click For another example, see Set Error Code Method. |
Siebel VB Language Reference | Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |