Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel VB Language Reference > Methods Reference for Siebel VB > Error Handling Methods > Get Error Code Line MethodThe Get Error Code Line method returns a number that identifies the code line where an error occurred. If you use a Resume statement or an On Error statement after you use this method, then this method sets the return value to 0. To maintain the value of the line number, you must assign it to a variable. You can use the Error statement to set this return value. FormatThis method does not include arguments. ExampleThe following example uses the Err statement to print the error number and the Erl statement to print the line number if an error occurs during an attempt to open a file. Siebel VB assigns line numbers, starting with 1. In this example the Sub Button_Click |
![]() ![]() |
Siebel VB Language Reference | Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |