Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Statements Reference > Guidelines for Using Siebel eScript > With StatementThe With statement associates a default object with a statement block. It only applies to the code that resides in the statement block where the With statement occurs, regardless of how Siebel eScript enters or exits the statement block. If Siebel eScript exits a With statement, then the With statement no longer applies. You cannot write code that uses a Goto statement or a label to enter or exit the middle of a statement block that resides in a With statement. Formatwith (object) Table 27 describes the arguments of the With statement.
ExampleThe following example includes a With statement: var bcOppty; The code in the With statement block is equivalent to the following code: bcOppty.SetViewMode(SalesRepView); |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |