Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Methods Reference for Siebel VB > Code Control Statements > Select Case StatementThe Select Case statement is a control structure that runs one or more statements, depending on the value of an expression. It does not return a value. FormatSelect Case testexpression The following table describes the arguments that you can use with this method. UsageIf the value in the testexpression argument is equal to the value in the expressionList argument, then Siebel VB runs the statement_block that occurs immediately after the Case clause. When Siebel VB encounters the next Case clause, the code flows to the statement that occurs immediately after the End Select statement. The expressionList can include a list of expressions. A comma separates each expression in this list. It can include one of the following forms: Is comparison_operator expression The type of each expression must be compatible with the type of the testexpression. Each statement_block can contain any number of statements on any number of lines. Using the Is KeywordIf you use the To keyword to specify a range of values, then the smaller value must occur first. The comparison_operator that you use with the Is keyword must contain one of the following:
If the Case is one end of a range, then you must use the Is operator. For example: |
Siebel VB Language Reference | Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |